'If the query should only return keys.
Raises:
datastore_errors.BadArgumentError if value is not a bool.'

@datastore_rpc.ConfigOption
def keys_only(value):

    if (not isinstance(value, bool)):
        raise datastore_errors.BadArgumentError(('keys_only    argument    should    be    bool    (%r)' % (value,)))
    return value
