code: def get_pipeline(pipelines, node):
      found = [i for i in pipelines if i.has_node(node)]
      if not found:
          return None
  
      assert len(found) == 1
      return found[0]
  
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 2 for calling a global function with example usage: get_pipeline(pipelines, node) and returns: found, None