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