code: def deprecated_property(name, replaced_by=None, message=None):
      """
      Creates a deprecated property that forwards logic to `replaced_by` property.
      :param name: name of the deprecated property.
      :param replaced_by: the new property object. If None, then the deprecated property will be a no-op property.
      :param message: the custom deprecation message. If None, a default message will be used.
      :return: the deprecated property.
      """
  
      if replaced_by:
          new_name = replaced_by.fget.__name__
          doc = message or "[Deprecated] Use ``{}`` instead".format(
              new_name
          )
          # doc += "\n\n{}".format(replaced_by.__doc__)
          msg = (
              message
              or "``{}`` is deprecated, please use ``{}`` instead.".format(
                  name, new_name
              )
          )
  
          def wrap(accessor):
              if accessor is None:
                  return
  
              def wrapper(*args):
                  warnings.warn(msg, H2ODeprecationWarning, 2)
                  return accessor(*args)
  
              return wrapper
  
          return property(
              wrap(replaced_by.fget),
              wrap(replaced_by.fset),
              wrap(replaced_by.fdel),
              doc,
          )
      else:
          doc = (
              message
              or "[Deprecated] The property was removed and will be ignored."
          )
          msg = (
              message
              or "``{}`` is deprecated and will be ignored.".format(
                  name
              )
          )
  
          def _fget(self):
              warnings.warn(msg, H2ODeprecationWarning, 2)
              return None
  
          def _fset(self, _):
              warnings.warn(msg, H2ODeprecationWarning, 2)
  
          return property(_fget, _fset, None, doc)
  
imports: from h2o.utils.compatibility import *
  from functools import wraps
  import inspect
  import warnings
  from h2o.exceptions import H2ODeprecationWarning
label_desc: Use image node_id 7 for calling a global function with example usage: deprecated_property(name, replaced_by, message) and returns: property, property, wrapper, None, accessor