code: def deprecated(deprecate_from, deprecate_to, msg):
      def decorator(obj):
          if isinstance(obj, type):
              return _decorate_class(
                  obj, deprecate_from, deprecate_to, msg
              )
          # # TODO:
          # elif isinstance(obj, property):
          #     return _decorate_prop(obj, msg)
          else:
              return _decorate_func(
                  obj, deprecate_from, deprecate_to, msg
              )
  
      return decorator
  
imports: import functools
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: deprecated(deprecate_from, deprecate_to, msg) and returns: decorator, _decorate_class, _decorate_func