code: def test_connected_raise(self):
      G = nx.Graph()
      with pytest.raises(NetworkXNotImplemented):
          next(nx.attracting_components(G))
      pytest.raises(
          NetworkXNotImplemented, nx.number_attracting_components, G
      )
      pytest.raises(
          NetworkXNotImplemented, nx.is_attracting_component, G
      )
  
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 5 for calling the TestAttractingComponents obj's underlying member method code with example usage: obj.test_connected_raise() without return types