@format_checker.checks('country-code')
def is_country_code(code):
    if code is None or not len(code.strip()):
        return False
    return code.upper() in set(load_countries().values())
dataset/ETHPy150Open pudo/opennames/pepparser/schema.py/is_country_code/original