<｜begin▁of▁sentence｜>### Instruction:
Given an Erdős-Rényi graph with 100 nodes and a connection probability of 0.05, can you use the RandNE model to obtain the node embeddings?
### Response:
import networkx as nx
from karateclub import RandNE
import numpy as np

# Create a random graph
G = nx.erdos_renyi_graph(100, 0.05)

# Initialize RandNE model
model = RandNE(dimensions=64, alphas=[0.5, 0.5], seed=42)

# Fit the model
model.fit(G)

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

print(embedding)
<|EOT|>
