<｜begin▁of▁sentence｜>### Instruction:
Given two random dot product graphs generated using the Erdos-Renyi model, with 50 and 60 vertices respectively and a connection probability of 0.2 for both, can you determine if the two graphs have statistically the same distributions of latent positions using the distance correlation ('dcorr') test with 500 bootstrap iterations?
### Response:
import numpy as np
import networkx as nx
from graspologic.inference import latent_distribution_test

# Generating two random graphs using the Erdos-Renyi model
n1, n2, p = 50, 60, 0.2
np.random.seed(42)
G1 = nx.erdos_renyi_graph(n1, p)
G2 = nx.erdos_renyi_graph(n2, p)

# Running the latent distribution test
p_value, null_distribution = latent_distribution_test(A1=G1, A2=G2, test='dcorr', n_bootstraps=500, random_state=np.random.RandomState(1))

# Output the test result
print(f'P-value of the latent distribution test: {p_value}')
<|EOT|>
