<｜begin▁of▁sentence｜>### Instruction:
Given two random dot product graphs generated with the same latent positions, can you use the latent_position_test from graspologic to determine if they have the same latent positions? Use the adjacency spectral embedding ('ase') method, test for rotation, and perform 500 bootstrap simulations.
### Response:
import numpy as np
from graspologic.simulations import rdpg
from graspologic.inference import latent_position_test

# Simulate two random dot product graphs (RDPG) with the same latent positions
X = np.random.normal(0, 1, size=(50, 2))
A1 = rdpg(X)
A2 = rdpg(X)

# Conduct a latent position test between the two graphs
result = latent_position_test(A1, A2, embedding='ase', n_components=2, test_case='rotation', n_bootstraps=500, workers=1)

# Output the test statistics
stat = result['stat']
pvalue = result['pvalue']
misc_dict = result['misc_dict']
print(f'Test Statistic: {stat}, P-value: {pvalue}')

# Optional: Output miscellaneous dictionary with additional information
print(f'Miscellaneous Information: {misc_dict}')
<|EOT|>
