def METHOD_NAME(args):
    rets = {}
    fileset = args.get('fileset')
    filesystem = args.get('filesystem')
    space = args.get('space')
    files = args.get('files')
    if not filesystem:
        raise ValueError('missing variable: filesystem')
    if not fileset:
        raise ValueError('missing variable: fileset')
    if not space:
        raise ValueError('missing variable: space')
    if not files:
        raise ValueError('missing variable: files')
    result = ess.fileset_quota(filesystem, fileset, space, files)
    error = result.get('error')
    job = result.get('job')
    if error or result.get('status') != 'COMPLETED':
        RuntimeError('failed to set quota on fileset')
    return rets