<｜begin▁of▁sentence｜>### Instruction:
Given a GNP random graph with 100 nodes and a probability of edge creation of 0.5, how can we use the NetMF model to get the node embeddings?
### Response:
import networkx as nx
from karateclub import NetMF

# Create a sample graph
G = nx.gnp_random_graph(100, 0.5, seed=42)

# Initialize NetMF model
model = NetMF(dimensions=32, iteration=10, order=2, negative_samples=1, seed=42)

# Fit the model to the graph
model.fit(G)

# Get the node embeddings
embedding = model.get_embedding()

print(embedding)
<|EOT|>
