function checkQueryVersionId(query) {
    if (query && query.versionId !== undefined) {
        const customMsg = 'This operation does not accept a version-id.';
        return errorInstances.InvalidArgument.customizeDescription(customMsg);
    }
    return undefined;
}
Checks for versionId in request query and returns error if it is there
@param {object} query - request query
@return {(Error|undefined)} - customized InvalidArgument error or undefined