code: def path(
      package: Package,
      resource: Resource,
  ) -> ContextManager[pathlib.Path]:
      """A context manager providing a file path object to the resource.
  
      If the resource does not already exist on its own on the file system,
      a temporary file will be created. If the file was created, the file
      will be deleted upon exiting the context manager (no exception is
      raised if the file was deleted prior to the context manager
      exiting).
      """
      return _common.as_file(
          _common.files(package) / normalize_path(resource)
      )
  
file_path: catboost/contrib/python/setuptools/py3/setuptools/_vendor/importlib_resources/_legacy.py
imports: import functools
  import os
  import pathlib
  import types
  import warnings
  from typing import Union, Iterable, ContextManager, BinaryIO, TextIO, Any
  from .None import _common
label_desc: Use image node_id 9 for calling a global function with example usage: path(package, resource) and returns: _common