code: def warn_deprecated_arg(
      self,
      arg_name,
      default_value,
      value,
      replacement_argument_name,
      replacement_class: type = None,
  ):
      global SILENCE_DEPRECATION_WARNING
      if not SILENCE_DEPRECATION_WARNING and default_value != value:
          if isinstance(replacement_class, type):
              replacement_class = replacement_class.__name__
          warnings.warn(
              f"Argument `{arg_name}={value}` for class `{self.__class__.__name__}` is deprecated. "
              f"Please consider using `{replacement_argument_name}` "
              f"or the class `{replacement_class}` "
              if replacement_class is not None
              else "" f"instead. " f"{_deact_msg_instructions()}"
          )
      return self
  
file_path: Neuraxle/neuraxle/logging/warnings.py
imports: import warnings
label_desc: Use image node_id 5 for calling a global function with example usage: warn_deprecated_arg(arg_name, default_value, value, replacement_argument_name, replacement_class) and returns: self