def METHOD_NAME(text):
    if text is None or len(text) == 0:
        return []
    results = []
    for code in COUNTRIES:
        if text.lower() in code.lower() \
                or text.lower() in COUNTRIES[code].lower():
            results.append(code)
    return results