<｜begin▁of▁sentence｜>### Instruction:
Given a G(n,p) Erdős-Rényi graph where n=100 and p=0.5, can you use the NodeSketch model to generate a low-dimensional embedding of its nodes?
### Response:
import networkx as nx
from karateclub import NodeSketch
import numpy as np

# Create a graph
g = nx.fast_gnp_random_graph(100, 0.5)

# Instantiate a NodeSketch model with default parameters
model = NodeSketch()

# Fit the model to the graph
g = nx.fast_gnp_random_graph(100, 0.5)
model.fit(g)

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