code: def collect_inside_path(path: str, graph: "DiGraph") -> List["Stage"]:
      import networkx as nx
  
      stages = nx.dfs_postorder_nodes(graph)
      return [stage for stage in stages if path_isin(stage.path, path)]
  
file_path: dvc/dvc/repo/graph.py
imports: from typing import TYPE_CHECKING, Any, Iterator, List, Optional, Set, TypeVar
  from dvc.fs import localfs
  from dvc.utils.fs import path_isin
label_desc: Use image node_id 6 for calling a global function with example usage: collect_inside_path(path, graph) and returns: unknown