<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=500, p=0.2, can you use RandomNodeNeighborSampler to sample a subgraph containing 150 nodes and perform further operations on the sampled graph?
### Response:
import networkx as nx
from littleballoffur import RandomNodeNeighborSampler

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

sampler = RandomNodeNeighborSampler(150)

sampler_G = sampler.sample(G)

# Perform operations on the sampled graph
<|EOT|>
