code: def wrap_spec(package):
      """
      Construct a package spec with traversable compatibility
      on the spec/loader/reader.
      """
      return SpecLoaderAdapter(
          package.__spec__, TraversableResourcesLoader
      )
  
file_path: catboost/contrib/tools/python3/src/Lib/importlib/resources/_adapters.py
imports: from contextlib import suppress
  from io import TextIOWrapper
  from .None import abc
label_desc: Use image node_id 2 for calling a global function with example usage: wrap_spec(package) and returns: SpecLoaderAdapter