<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=800, p=0.25, can you use DegreeBasedSampler to sample a subgraph which has 200 nodes and print the nodes of the sampled graph?
### Response:
import networkx as nx
from littleballoffur import DegreeBasedSampler

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

sampler = DegreeBasedSampler(200, seed=42)

sampler_G = sampler.sample(G)

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