<｜begin▁of▁sentence｜>### Instruction:
Given two Erdos-Renyi graphs with 50 nodes each and a connection probability of 0.3, can you use the latent_position_test from graspologic to determine whether the two graphs have the same latent positions? The test should use the omnibus embedding method, set the number of embedding dimensions to 2, apply a rotation test case, run 500 bootstraps, and use one worker to parallelize the computation. You should display the test statistic and p-value as the result.
### Response:
import numpy as np
from graspologic.simulations import er_np
from graspologic.inference import latent_position_test

# Generate two Erdos-Renyi graphs G1 and G2
np.random.seed(42)
G1 = er_np(n=50, p=0.3)
G2 = er_np(n=50, p=0.3)

# Run the latent position test
result = latent_position_test(G1, G2, embedding='omnibus', n_components=2, test_case='rotation', n_bootstraps=500, workers=1)

# Output the test statistic and p-value
stat = result['stat']
pvalue = result['pvalue']
print('Test statistic:', stat)
print('P-value:', pvalue)
<|EOT|>
