<｜begin▁of▁sentence｜>### Instruction:
Given a networkx erdos_renyi_graph with params n=800, p=0.2, can you use MetropolisHastingsRandomWalkSampler to sample a subgraph which has 150 nodes and perform some operations on the sampled graph?
### Response:
import networkx as nx
from littleballoffur import MetropolisHastingsRandomWalkSampler

G = nx.erdos_renyi_graph(n=800, p=0.2)

sampler = MetropolisHastingsRandomWalkSampler(150, seed=10, alpha=0.5)

sampler_G = sampler.sample(G)

# Perform some operations on the sampled graph
<|EOT|>
