'Cursor to use as an end position.
Ignored if present on datastore_rpc.Connection.config.
Raises:
datastore_errors.BadArgumentError if value is not a Cursor.'

@datastore_rpc.ConfigOption
def end_cursor(value):

    if (not isinstance(value, Cursor)):
        raise datastore_errors.BadArgumentError(('end_cursor    argument    should    be    datastore_query.Cursor    (%r)' % (value,)))
    return value
