code: def _raise_deprecation_note(deprecated, replacement, soft=False):
      
      error_msg = ("`{deprecated}` is deprecated. Please use `{replacement}`. "
                   "`{deprecated}` will be removed in future versions of "
                   "Ray.".format(deprecated=deprecated, replacement=replacement))
      if soft:
          logger.warning(error_msg)
      else:
          raise DeprecationWarning(error_msg)
docs: User notification for deprecated parameter.
  
      Arguments:
          deprecated (str): Deprecated parameter.
          replacement (str): Replacement parameter to use instead.
          soft (bool): Fatal if True.