code: def _index_deprecate(i, stacklevel=2):
      try:
          i = operator.index(i)
      except TypeError:
          msg = (
              "object of type {} cannot be safely interpreted as "
              "an integer.".format(type(i))
          )
          i = int(i)
          stacklevel += 1
          warnings.warn(msg, DeprecationWarning, stacklevel=stacklevel)
      return i
  
file_path: catboost/contrib/python/numpy/py2/numpy/core/function_base.py
imports: from __future__ import division, absolute_import, print_function
  import functools
  import warnings
  import operator
  from .None import numeric
  from .numeric import result_type, NaN, shares_memory, MAY_SHARE_BOUNDS, TooHardError, asanyarray, ndim
  from numpy.core.multiarray import add_docstring
  from numpy.core import overrides
label_desc: Use image node_id 1 for calling a global function with example usage: _index_deprecate(i, stacklevel) and returns: i