code: def deprecated(func):
      @functools.wraps(func)
      def wrapper(*args, **kwargs):
          warnings.warn(
              f"{func.__name__} is deprecated. Use files() instead. "
              "Refer to https://importlib-resources.readthedocs.io"
              "/en/latest/using.html#migrating-from-legacy for migration advice.",
              DeprecationWarning,
              stacklevel=2,
          )
          return func(*args, **kwargs)
  
      return wrapper
  
file_path: catboost/contrib/python/setuptools/py3/pkg_resources/_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 1 for calling a global function with example usage: deprecated(func) and returns: wrapper, func