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

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

sampler = SpikyBallSampler(50, 0.15, 0.2, seed=123, max_hops=100000, mode='fireball', max_visited_nodes_backlog=150, restart_hop_size=10, distrib_coeff=1.0)

sampler_G = sampler.sample(G)

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