code: def test_path(self):
      G = nx.path_graph(100, create_using=nx.DiGraph())
      assert nx.is_semiconnected(G)
      G.add_edge(100, 99)
      assert not nx.is_semiconnected(G)
  
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 4 for calling the TestIsSemiconnected obj's underlying member method code with example usage: obj.test_path() without return types