def METHOD_NAME(cls, country):
    for continent, countries in geo_data.items():
        if country in countries:
            return f'{continent}-{country}'
    cls.log.warning('country_to_code: unrecognized country "%s"', country)
    return