code: def wrap_spec(package):
      """
      Construct a package spec with traversable compatibility
      on the spec/loader/reader.
  
      Supersedes _adapters.wrap_spec to use TraversableResourcesLoader
      from above for older Python compatibility (<3.10).
      """
      from . import _adapters
  
      return _adapters.SpecLoaderAdapter(
          package.__spec__, TraversableResourcesLoader
      )
  
file_path: catboost/contrib/python/setuptools/py3/pkg_resources/_vendor/importlib_resources/_compat.py
imports: import abc
  import os
  import sys
  import pathlib
  from contextlib import suppress
  from typing import Union
label_desc: Use image node_id 1 for calling a global function with example usage: wrap_spec(package) and returns: _adapters