def METHOD_NAME(cls, name: str) -> id:
    name = name.upper().replace(" ", "_")
    try:
        organism = cls.objects.filter(name=name)[0]
    except IndexError:
        is_scientific_name = False
        try:
            taxonomy_id = get_taxonomy_id_scientific(name)
            is_scientific_name = True
        except UnscientificNameError:
            taxonomy_id = get_taxonomy_id(name)
        organism = Organism(
            name=name, taxonomy_id=taxonomy_id, is_scientific_name=is_scientific_name
        )
        organism.save()
    return organism.taxonomy_id