def require_instance_exists_using_uuid(f):
 @functools.wraps(f)
 def wrapper(context, instance_uuid, *args, **kwargs):
  instance_get_by_uuid(context, instance_uuid)
  return f(context, instance_uuid, *args, **kwargs)
 return wrapper

def require_instance_exists_using_uuid ( f ) : @ functools . wraps ( f ) def wrapper ( context , instance_uuid , * args , ** kwargs ) : instance_get_by_uuid ( context , instance_uuid ) return f ( context , instance_uuid , * args , ** kwargs ) return wrapper
decorator to require the specified instance to exist .