code: def test_from_biadjacency_weight(self):
      M = sparse.csc_matrix([[1, 2], [0, 3]])
      B = bipartite.from_biadjacency_matrix(M)
      assert edges_equal(B.edges(), [(0, 2), (0, 3), (1, 3)])
      B = bipartite.from_biadjacency_matrix(M, edge_attribute="weight")
      e = [
          (0, 2, {"weight": 1}),
          (0, 3, {"weight": 2}),
          (1, 3, {"weight": 3}),
      ]
      assert edges_equal(B.edges(data=True), e)
  
file_path: networkx/networkx/algorithms/bipartite/tests/test_matrix.py
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
  from networkx.utils import edges_equal
label_desc: Use image node_id 10 for calling the TestBiadjacencyMatrix obj's underlying member method code with example usage: obj.test_from_biadjacency_weight() without return types