code: def test_digraph_weighted_projection(self):
      G = nx.DiGraph([(0, 1), (1, 2), (2, 3), (3, 4)])
      P = bipartite.overlap_weighted_projected_graph(G, [1, 3])
      assert nx.get_edge_attributes(P, "weight") == {(1, 3): 1.0}
      assert len(P) == 2
  
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 6 for calling the TestBipartiteProject obj's underlying member method code with example usage: obj.test_digraph_weighted_projection() without return types