def METHOD_NAME(classifications):
    for classification in classifications:
        if classification.feature_schema_id is None:
            raise ValueError(
                f"feature_schema_id cannot be None for classification `{classification.name}`."
            )
        if isinstance(classification, ontology.Classification):
            classification_lookup[
                classification.name] = classification.feature_schema_id
        elif isinstance(classification, ontology.Option):
            classification_lookup[
                classification.value] = classification.feature_schema_id
        else:
            raise TypeError(
                f"Unexpected type found in ontology. `{type(classification)}`"
            )
        METHOD_NAME(classification.options)