<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=500, p=0.2, can you use DepthFirstSearchSampler to sample a subgraph of 50 nodes using a randomized depth first search technique?
### Response:
import networkx as nx
from littleballoffur import DepthFirstSearchSampler

G = nx.gnp_random_graph(n=500, p=0.2)
sampler = DepthFirstSearchSampler(number_of_nodes=50, seed=123)
sampled_G = sampler.sample(G)
print(sampled_G)
<|EOT|>
