<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=300, p=0.3, can you use RandomWalkWithJumpSampler to sample a subgraph which has 40 nodes and print the nodes of the sampled graph?
### Response:
import networkx as nx
from littleballoffur import RandomWalkWithJumpSampler

G = nx.gnp_random_graph(n=300, p=0.3)

sampler = RandomWalkWithJumpSampler(40)

sampler_G = sampler.sample(G)

print(sampler_G.nodes())
<|EOT|>
