code: def test_connected_raise(self):
      G = nx.Graph()
      with pytest.raises(NetworkXNotImplemented):
          next(nx.weakly_connected_components(G))
      pytest.raises(
          NetworkXNotImplemented,
          nx.number_weakly_connected_components,
          G,
      )
      pytest.raises(NetworkXNotImplemented, nx.is_weakly_connected, G)
  
file_path: networkx/networkx/algorithms/components/tests/test_weakly_connected.py
imports: import pytest
  import networkx
  from networkx import NetworkXNotImplemented
label_desc: Use image node_id 6 for calling the TestWeaklyConnected obj's underlying member method code with example usage: obj.test_connected_raise() without return types