def METHOD_NAME(code):
    """
    Gets whether the given code is a valid ISO639-3 code.
    """
    try:
        iso639.languages.get(part3=code)
        return True
    except KeyError:
        return False