code: def partial_view(
      index: "Index", targets: "TargetType", **kwargs
  ) -> "IndexView":
      return index.targets_view(
          targets,
          stage_filter=lambda s: s.is_partial_import,
          **kwargs,
      )
  
file_path: dvc/dvc/repo/imports.py
imports: import os
  from functools import partial
  from tempfile import TemporaryDirectory
  from typing import TYPE_CHECKING, List, Set, Tuple, Union
  from dvc.log import logger
label_desc: Use image node_id 2 for calling a global function with example usage: partial_view(index, targets) and returns: index