code: def as_file(path):
      """
      Given a Traversable object, return that object as a
      path on the local file system in a context manager.
      """
      return _tempfile(path.read_bytes, suffix=path.name)
  
file_path: catboost/contrib/tools/python3/src/Lib/importlib/resources/_common.py
imports: import os
  import pathlib
  import tempfile
  import functools
  import contextlib
  import types
  import importlib
  from typing import Union, Optional
  from .abc import ResourceReader, Traversable
  from ._adapters import wrap_spec
label_desc: Use image node_id 7 for calling a global function with example usage: as_file(path) and returns: _tempfile