code: def renamed_kwargs(old_name, new_name, value, kwargs):
      """Checks if the deprecated argument is in kwargs
  
      Raises warning, if present.
  
      Args:
          old_name: name of deprecated argument
          new_name: name of the new argument
          value: value associated with new name, if supplied
          kwargs: keyword arguments dict
  
      Returns:
          value of the keyword argument, if present
      """
      if old_name in kwargs:
          value = kwargs.get(old_name, value)
          kwargs[new_name] = value
          renamed_warning(old_name)
      return value
  
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 7 for calling a global function with example usage: renamed_kwargs(old_name, new_name, value, kwargs) and returns: value