<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=500, p=0.2, can you use RandomNodeSampler to sample a subgraph which has 200 nodes?
### Response:
import networkx as nx
from littleballoffur import RandomNodeSampler

G = nx.gnp_random_graph(n=500, p=0.2)

sampler = RandomNodeSampler(200)

sampler_G = sampler.sample(G)

print(len(sampler_G))
<|EOT|>
