code: def deprecated(message=""):
      def deprecated_decorator(function):
          @wraps(function)
          def wrapped(*args, **kwargs):
              warnings.simplefilter("always", DeprecationWarning)
              warnings.warn(
                  "{} will be deprecated in future release. {}".format(
                      function.__name__, message
                  ),
                  category=DeprecationWarning,
              )
              warnings.simplefilter("default", DeprecationWarning)
              return function(*args, **kwargs)
  
          return wrapped
  
      return deprecated_decorator
  
file_path: BigDL/python/chronos/src/bigdl/chronos/utils.py
imports: import warnings
  from functools import wraps
  import importlib
  import sys
  import pickle
  import hmac
  import hashlib
  from bigdl.nano.utils.common import invalidInputError
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated(message) and returns: deprecated_decorator, wrapped, function