code: def deprecated(*args, **kwargs):
      """
      Decorator - a function that accepts another function
      and marks it as deprecated, meaning it may be discontinued in
      future releases, and is provided only for backward compatibility purposes.
  
      ---------------
      Example:
  
      >>>@deprecated(instead="module2.another_function")
      >>>def a_function():
      >>>    "Demonstration function"
      >>>    return "demonstration"
  
      >>>a_function()
      DeprecationWarning: Deprecated! Function: a_function is deprecated.
      Instead use module2.another_function.
      warnings.warn(DeprecationWarning(msg))
      demonstration
      """
  
      def mark_deprecated(func):
          msg = f"Deprecated! Function: {func.__name__} is deprecated. \
                  Instead use {kwargs['instead']}."
  
          warnings.warn(DeprecationWarning(msg))
  
          return func
  
      return mark_deprecated
  
imports: import warnings
label_desc: Use image node_id 2 for calling a global function with example usage: deprecated() and returns: mark_deprecated, func