code: def test_undirected(self):
      pytest.raises(
          nx.NetworkXNotImplemented, nx.is_semiconnected, nx.Graph()
      )
      pytest.raises(
          nx.NetworkXNotImplemented,
          nx.is_semiconnected,
          nx.MultiGraph(),
      )
  
file_path: networkx/networkx/algorithms/components/tests/test_semiconnected.py
imports: from itertools import chain
  import pytest
  import networkx
label_desc: Use image node_id 1 for calling the TestIsSemiconnected obj's underlying member method code with example usage: obj.test_undirected() without return types