def METHOD_NAME(requested_version, version_manifest):
    target = Version(requested_version)
    if len(requested_version.split(".")) > 2:
        return requested_version
    else:
        target_versions = [
            Version(version) for version in version_manifest.keys() if version.startswith(requested_version)
        ]
        if target_versions:
            return target_versions[0]
        else:
            print(f'Unable to select a valid version from manifest for version "{requested_version}"')