code: def setup_class(cls):
      # Tore Opsahl's example
      # http://toreopsahl.com/2009/05/01/projecting-two-mode-networks-onto-weighted-one-mode-networks/
      cls.G = nx.Graph()
      cls.G.add_edge("A", 1)
      cls.G.add_edge("A", 2)
      cls.G.add_edge("B", 1)
      cls.G.add_edge("B", 2)
      cls.G.add_edge("B", 3)
      cls.G.add_edge("B", 4)
      cls.G.add_edge("B", 5)
      cls.G.add_edge("C", 1)
      cls.G.add_edge("D", 3)
      cls.G.add_edge("E", 4)
      cls.G.add_edge("E", 5)
      cls.G.add_edge("E", 6)
      cls.G.add_edge("F", 6)
      # Graph based on figure 6 from Newman (2001)
      cls.N = nx.Graph()
      cls.N.add_edge("A", 1)
      cls.N.add_edge("A", 2)
      cls.N.add_edge("A", 3)
      cls.N.add_edge("B", 1)
      cls.N.add_edge("B", 2)
      cls.N.add_edge("B", 3)
      cls.N.add_edge("C", 1)
      cls.N.add_edge("D", 1)
      cls.N.add_edge("E", 3)
  
imports: import pytest
  import networkx
  from networkx.algorithms import bipartite
  from networkx.utils import edges_equal, nodes_equal
label_desc: Use image node_id 1 for calling the TestBipartiteWeightedProjection obj's underlying member method code with example usage: obj.setup_class(cls) without return types