def METHOD_NAME(self) -> Dict[str, str]:
    METHOD_NAME: Dict[str, str] = defaultdict(str)
    for version_path in self.paths_to_versions:
        metadata_json = json.loads(self.read_file(version_path / "_metadata.json"))
        version = metadata_json["chosen_version"]
        total_api_version_list = metadata_json["total_api_version_list"]
        if not version:
            if total_api_version_list:
                sys.exit(
                    f"Unable to match {total_api_version_list} to label {version_path.stem}"
                )
            else:
                sys.exit(f"Unable to extract api version of {version_path.stem}")
        METHOD_NAME[version_path.name] = version
    return METHOD_NAME