<｜begin▁of▁sentence｜>### Instruction:
Given an Erdos-Renyi graph with 100 nodes and a connection probability of 0.05, how can we use the SocioDim model to obtain a node embedding that captures the latent social dimensions of the graph?
### Response:
import networkx as nx
from karateclub import SocioDim

# Create a random graph using the Erdos-Renyi model
g = nx.erdos_renyi_graph(n=100, p=0.05)

# Initialize SocioDim model with default parameters
model = SocioDim()

# Fit the model
model.fit(g)

# Retrieve the embedding
embedding = model.get_embedding()

print(embedding)
<|EOT|>
