code: def test_empty(self):
      pytest.raises(
          nx.NetworkXPointlessConcept, nx.is_semiconnected, nx.DiGraph()
      )
      pytest.raises(
          nx.NetworkXPointlessConcept,
          nx.is_semiconnected,
          nx.MultiDiGraph(),
      )
  
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 2 for calling the TestIsSemiconnected obj's underlying member method code with example usage: obj.test_empty() without return types