code: def test_biadjacency_matrix_weight(self):
      pytest.importorskip("scipy")
      G = nx.path_graph(5)
      G.add_edge(0, 1, weight=2, other=4)
      X = [1, 3]
      Y = [0, 2, 4]
      M = bipartite.biadjacency_matrix(G, X, weight="weight")
      assert M[0, 0] == 2
      M = bipartite.biadjacency_matrix(G, X, weight="other")
      assert M[0, 0] == 4
  
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 13 for calling the TestBipartiteBasic obj's underlying member method code with example usage: obj.test_biadjacency_matrix_weight() without return types