code: def _decorate_prop(prop, msg):
      @functools.wraps(prop)
      @property
      def wrapped(*args, **kwargs):
          msg_template = "Property {name} is deprecated. {msg}"
          warnings.simplefilter("always", DeprecationWarning)
          warnings.warn(
              msg_template.format(name=prop.__name__, msg=msg),
              category=DeprecationWarning,
          )
          warnings.simplefilter("default", DeprecationWarning)
          return prop.fget(*args, **kwargs)
  
      return wrapped
  
imports: import functools
  import warnings
label_desc: Use image node_id 4 for calling a global function with example usage: _decorate_prop(prop, msg) and returns: wrapped, prop