code: def deprecated_function(func, name):
      """Wrap a function with a deprecation warning.
  
      Args:
          func: Function to wrap in a deprecation warning.
          name: The name that has been deprecated.
  
      Returns:
          The modified function
      """
  
      def deprecate(*args, **kwargs):
          renamed_warning(f"The {name}")
          return func(*args, **kwargs)
  
      return deprecate
  
file_path: sagemaker-python-sdk/src/sagemaker/deprecations.py
imports: from __future__ import absolute_import
  import logging
  import warnings
label_desc: Use image node_id 12 for calling a global function with example usage: deprecated_function(func, name) and returns: deprecate, func