code: def test_random_digraph(self):
      n = 10
      m = 20
      G = random_graph(n, m, 0.9, directed=True)
      assert len(G) == 30
      assert nx.is_bipartite(G)
      X, Y = nx.algorithms.bipartite.sets(G)
      assert set(range(n)) == X
      assert set(range(n, n + m)) == Y
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_generators.py
imports: import numbers
  import pytest
  import networkx
  from ..generators import alternating_havel_hakimi_graph, complete_bipartite_graph, configuration_model, gnmk_random_graph, havel_hakimi_graph, preferential_attachment_graph, random_graph, reverse_havel_hakimi_graph
label_desc: Use image node_id 8 for calling the TestGeneratorsBipartite obj's underlying member method code with example usage: obj.test_random_digraph() without return types