<｜begin▁of▁sentence｜>### Instruction:
As a networkx expert, you are interested in analyzing a social network of 800 individuals created using the Erdos-Renyi model with a connection probability of 0.1. You are keen to use the RandomNodeSampler to extract a subgraph containing 50 nodes to better understand the network dynamics and properties.
### Response:
import networkx as nx
from littleballoffur import RandomNodeSampler

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

sampler = RandomNodeSampler(50)

sampler_G = sampler.sample(G)

print(sampler_G.nodes)
<|EOT|>
