<｜begin▁of▁sentence｜>### Instruction:
Given a graph which you can read from littleballoffur8.sparse6, can you use RandomNodeNeighborSampler to sample a subgraph that includes a specified number of nodes and their neighbors?
### Response:
import networkx as nx
from littleballoffur.exploration_sampling import RandomNodeNeighborSampler
G = nx.read_sparse6('littleballoffur8.sparse6')
sampler = RandomNodeNeighborSampler(number_of_nodes=10)
sampler_G = sampler.sample(G)
print(sampler_G.edges(), sampler_G.nodes())
<|EOT|>
