def METHOD_NAME(
        self, env: str,
        versions: Set[common.VersionKey]) -> Dict[common.VersionKey, str]:
    """Gets the release tags of the AppEngine versions.
    Args:
        env: The environment of the deployed release, e.g., sandbox.
        versions: The AppEngine versions.
    Returns:
        A mapping of versions to release tags.
    """
    mapping = self._get_release_to_version_mapping(env)
    return {
        version: tag
        for version, tag in mapping.items() if version in versions
    }