<｜begin▁of▁sentence｜>### Instruction:
Given the Karate Club graph from NetworkX, can you use the AdjacencySpectralEmbed class in graspologic to compute a 2-dimensional embedding of the graph?
### Response:
import numpy as np
import networkx as nx
from graspologic.embed import AdjacencySpectralEmbed

# Create a graph
G = nx.karate_club_graph()

# Initialize the Adjacency Spectral Embedding model
ase = AdjacencySpectralEmbed(n_components=2)

# Fit the model and transform the graph
embedding = ase.fit_transform(G)

# Display the result
print(embedding)
<|EOT|>
