function decodeVID(versionId) {
    if (versionId === 'null') {
        return versionId;
    }

    let decoded;
    const invalidErr = errorInstances.InvalidArgument.customizeDescription('Invalid version id specified');
    try {
        decoded = versionIdUtils.decode(versionId);
    } catch {
        return invalidErr;
    }

    if (decoded instanceof Error) {
        return invalidErr;
    }

    return decoded;
}
decodeVID - decode the version id
@param {string} versionId - version ID
@return {(Error|string|undefined)} - return Invalid Argument if decryption
fails due to improper format, otherwise undefined or the decoded version id