code: def deprecated(func_name=None, message=""):
      def deprecated_decorator(function):
          @wraps(function)
          def wrapped(*args, **kwargs):
              warnings.simplefilter("always", DeprecationWarning)
              funcname = (
                  function.__name__ if func_name is None else func_name
              )
              warnings.warn(
                  "`{}` will be deprecated in future release. {}".format(
                      funcname, message
                  ),
                  category=DeprecationWarning,
              )
              warnings.simplefilter("default", DeprecationWarning)
              return function(*args, **kwargs)
  
          return wrapped
  
      return deprecated_decorator
  
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated(func_name, message) and returns: deprecated_decorator, wrapped, function