code: def _wrap_deprecated_function(func, message):
      
      def _(col):
          warnings.warn(message, DeprecationWarning)
          return func(col)
      return functools.wraps(func)(_)
docs: Wrap the deprecated function to print out deprecation warnings