code: def deprecated(new, warning_type=FutureWarning):
      """Helper to provide deprecation warning."""
  
      def old(*args, **kwargs):
          warnings.warn(
              "{} is intended for internal ".format(new.__name__[1:])
              + "use only, and will be deprecated.",
              warning_type,
              stacklevel=2,
          )
          new(*args, **kwargs)
  
      return old
  
imports: import warnings
  import numpy
  import pandas
  from pandas.plotting import PlotAccessor
  from pandas import CategoricalDtype
  import geopandas
  from packaging.version import Version
  from ._decorator import doc
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated(new, warning_type) and returns: old