<｜begin▁of▁sentence｜>### Instruction:
Given a list of two Erdős-Rényi random graphs (each with 50 nodes and the probability of edge creation p=0.1), how can you use the Graph2Vec model to generate embeddings for these graphs?
### Response:
import networkx as nx
from karateclub import Graph2Vec

# Create a list of graphs
g1 = nx.fast_gnp_random_graph(50, 0.1)
g2 = nx.fast_gnp_random_graph(50, 0.1)
graphs = [g1, g2]

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

# Fit the model on the list of graphs
model.fit(graphs)

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