<｜begin▁of▁sentence｜>### Instruction:
Given two random dot product graphs generated with the same latent positions, can you test for the equality of their latent positions using the graspologic `latent_position_test`? You should use the 'ase' embedding method, 'rotation' test case, and 500 bootstrap simulations. Print the statistic and p-value of the test.
### Response:
import numpy as np
from graspologic.inference import latent_position_test
from graspologic.embed import AdjacencySpectralEmbed
import networkx as nx

# Generate two random graphs G1 and G2 using the same latent positions
latent_positions = np.random.uniform(size=(10, 2))
G1 = nx.random_dot_product_graph(latent_positions)
G2 = nx.random_dot_product_graph(latent_positions)

# Convert graphs to adjacency matrices
A1 = nx.to_numpy_array(G1)
A2 = nx.to_numpy_array(G2)

# Test for equality of the latent positions
stat, pvalue, misc_dict = latent_position_test(A1, A2, embedding='ase', n_components=2, test_case='rotation', n_bootstraps=500, workers=1)

# Print the results
print('Statistic:', stat)
print('p-value:', pvalue)
<|EOT|>
