<｜begin▁of▁sentence｜>### Instruction:
Given a random graph G with 100 nodes and 500 edges, how can you use the DeepWalk model to generate node embeddings?
### Response:
import networkx as nx
from karateclub import DeepWalk

# Create a graph
G = nx.gnm_random_graph(100, 500)

# Initialize DeepWalk model with custom parameters
model = DeepWalk(walk_number=10, walk_length=80, dimensions=128, workers=4, window_size=5, epochs=1, learning_rate=0.05, min_count=1, seed=42)

# Fit the model
model.fit(G)

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

print(embeddings)
<|EOT|>
