code: def test_is_attracting_component(self):
      assert not nx.is_attracting_component(self.G1)
      assert not nx.is_attracting_component(self.G2)
      assert not nx.is_attracting_component(self.G3)
      g2 = self.G3.subgraph([1, 2])
      assert nx.is_attracting_component(g2)
      assert not nx.is_attracting_component(self.G4)
  
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 4 for calling the TestAttractingComponents obj's underlying member method code with example usage: obj.test_is_attracting_component() without return types