<｜begin▁of▁sentence｜>### Instruction:
Given a random graph G with 100 nodes and a connection probability of 0.5, can you use the Walklets model to generate a node embedding?
### Response:
import networkx as nx
from karateclub import Walklets

# Step 1: Create a graph
G = nx.gnp_random_graph(100, 0.5)

# Step 2: Initialize Walklets model
model = Walklets(walk_number=10, 
                walk_length=80, 
                dimensions=32, 
                workers=4, 
                window_size=5, 
                epochs=1, 
                learning_rate=0.05, 
                min_count=1, 
                seed=42)

# Step 3: Fit the model
model.fit(G)

# Step 4: Get the embedding
embedding = model.get_embedding()

print(embedding)
<|EOT|>
