code: def warn_deprecated_class(
      self, replacement_class: type = None, as_per_version: str = None
  ):
      global SILENCE_DEPRECATION_WARNING
      if (
          not SILENCE_DEPRECATION_WARNING
          and replacement_class is not None
      ):
          warnings.warn(
              _deprecated_class_msg(replacement_class, as_per_version)
              + _deact_msg_instructions()
          )
      return self
  
file_path: Neuraxle/neuraxle/logging/warnings.py
imports: import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: warn_deprecated_class(replacement_class, as_per_version) and returns: self