<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=500, p=0.25, can you use RandomNodeNeighborSampler to sample a subgraph which has 150 nodes based on random node-neighbor sampling technique?
### Response:
import networkx as nx
from littleballoffur import RandomNodeNeighborSampler

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

sampler = RandomNodeNeighborSampler(number_of_nodes=150, seed=42)

sampler_G = sampler.sample(G)

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