code: def test_connected_raise(self):
      with pytest.raises(NetworkXNotImplemented):
          next(nx.connected_components(self.DG))
      pytest.raises(
          NetworkXNotImplemented,
          nx.number_connected_components,
          self.DG,
      )
      pytest.raises(
          NetworkXNotImplemented,
          nx.node_connected_component,
          self.DG,
          1,
      )
      pytest.raises(NetworkXNotImplemented, nx.is_connected, self.DG)
      pytest.raises(
          nx.NetworkXPointlessConcept, nx.is_connected, nx.Graph()
      )
  
file_path: networkx/networkx/algorithms/components/tests/test_connected.py
imports: import pytest
  import networkx
  from networkx import NetworkXNotImplemented
  from networkx import convert_node_labels_to_integers
  from networkx.classes.tests import dispatch_interface
label_desc: Use image node_id 8 for calling the TestConnected obj's underlying member method code with example usage: obj.test_connected_raise() without return types