code: def setup_class(cls):
      cls.G1 = nx.DiGraph()
      cls.G1.add_edges_from(
          [
              (5, 11),
              (11, 2),
              (11, 9),
              (11, 10),
              (7, 11),
              (7, 8),
              (8, 9),
              (3, 8),
              (3, 10),
          ]
      )
      cls.G2 = nx.DiGraph()
      cls.G2.add_edges_from([(0, 1), (0, 2), (1, 1), (1, 2), (2, 1)])
  
      cls.G3 = nx.DiGraph()
      cls.G3.add_edges_from(
          [(0, 1), (1, 2), (2, 1), (0, 3), (3, 4), (4, 3)]
      )
  
      cls.G4 = nx.DiGraph()
  
file_path: networkx/networkx/algorithms/components/tests/test_attracting.py
imports: import pytest
  import networkx
  from networkx import NetworkXNotImplemented
label_desc: Use image node_id 1 for calling the TestAttractingComponents obj's underlying member method code with example usage: obj.setup_class(cls) without return types