code: def test_single_target_shortest_path(self):
      p = nx.single_target_shortest_path(self.directed_cycle, 0)
      assert p[3] == [3, 4, 5, 6, 0]
      p = nx.single_target_shortest_path(self.cycle, 0)
      assert p[3] == [3, 2, 1, 0]
      p = nx.single_target_shortest_path(self.cycle, 0, cutoff=0)
      assert p == {0: [0]}
      # test missing targets
      target = 8
      with pytest.raises(
          nx.NodeNotFound, match=f"Target {target} not in G"
      ):
          nx.single_target_shortest_path(self.cycle, target)
  
file_path: networkx/networkx/algorithms/shortest_paths/tests/test_unweighted.py
imports: import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestUnweightedPath obj's underlying member method code with example usage: obj.test_single_target_shortest_path() without return types