code: def test_biadjacency_matrix(self):
      pytest.importorskip("scipy")
      tops = [2, 5, 10]
      bots = [5, 10, 15]
      for i in range(len(tops)):
          G = bipartite.random_graph(tops[i], bots[i], 0.2)
          top = [
              n for n, d in G.nodes(data=True) if d["bipartite"] == 0
          ]
          M = bipartite.biadjacency_matrix(G, top)
          assert M.shape[0] == tops[i]
          assert M.shape[1] == bots[i]
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_basic.py
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
label_desc: Use image node_id 14 for calling the TestBipartiteBasic obj's underlying member method code with example usage: obj.test_biadjacency_matrix() without return types