code: def test_random_dag(self):
      for i in range(100):
          n_nodes = np.random.randint(low=2, high=100)
          edge_prob = np.random.uniform()
          dag = DAG.get_random(n_nodes=n_nodes, edge_prob=edge_prob)
          self.assertEqual(len(dag.nodes()), n_nodes)
          self.assertTrue(nx.is_directed_acyclic_graph(dag))
          self.assertTrue(len(dag.latents) == 0)
  
      dag_latents = DAG.get_random(
          n_nodes=n_nodes, edge_prob=0.5, latents=True
      )
  
imports: import unittest
  import networkx
  import numpy
  import pgmpy.tests.help_functions
  from pgmpy.base import DAG, PDAG
label_desc: Use image node_id 24 for calling the TestDAGCreation obj's underlying member method code with example usage: obj.test_random_dag() without return types