<｜begin▁of▁sentence｜>### Instruction:
Given a graph read from littleballoffur12.sparse6, how can you use RandomNodeEdgeSampler to sample a subgraph containing a specific number of edges?
### Response:
import networkx as nx
from littleballoffur import RandomNodeEdgeSampler
G = nx.read_sparse6('littleballoffur12.sparse6')
sampler = RandomNodeEdgeSampler(number_of_edges=50, seed=42)
sampler_G = sampler.sample(G)
print(sampler_G.edges())
print(sampler_G.nodes());
<|EOT|>
