def mark_resources_dirty(f):
 @six.wraps(f)
 def wrapper(_self, context, *args, **kwargs):
  ret_val = f(_self, context, *args, **kwargs)
  set_resources_dirty(context)
  return ret_val
 return wrapper

def mark_resources_dirty ( f ) : @ six . wraps ( f ) def wrapper ( _self , context , * args , ** kwargs ) : ret_val = f ( _self , context , * args , ** kwargs ) set_resources_dirty ( context ) return ret_val return wrapper
decorator for functions which alter resource usage .