<｜begin▁of▁sentence｜>### Instruction:
Given a set of 5 nodes with latent positions generated from a 2-dimensional Dirichlet distribution, how can we sample a binary random dot product graph (RDPG), ensuring that there are no self-loops in the graph?
### Response:
import numpy as np
from graspologic.simulations import rdpg

# Generate random latent positions using 2-dimensional Dirichlet distribution.
X = np.random.dirichlet([1, 1], size=5)

# Sample a binary RDPG using sampled latent positions.
A = rdpg(X, loops=False)

# Output the adjacency matrix
print(A)
<|EOT|>
