<｜begin▁of▁sentence｜>### Instruction:
Given a GNP random graph with 100 nodes and a 0.5 probability for edge creation, can you use the Walklets model, from the ASONAM ‘17 paper 'Don’t Walk, Skip! Online Learning of Multi-scale Network Embeddings', to obtain the node embeddings?
### Response:
import networkx as nx
from karateclub import Walklets

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

# Initializing Walklets model with default parameters
model = Walklets(walk_number=10, walk_length=80, dimensions=32, workers=4, window_size=4, epochs=1, learning_rate=0.05, min_count=1, seed=42)

# Fitting Walklets model on the graph
model.fit(G)

# Getting the embedding
embedding = model.get_embedding()
print(embedding)
<|EOT|>
