def _map_attribute_type(attribute_type):
    """Map the attribute type to the corresponding AttributeType enum."""
    if attribute_type == "question":
        return AttributeType.QUESTION
    elif attribute_type == "field":
        return AttributeType.FIELD
    elif attribute_type == "metadata":
        return AttributeType.METADATA
    elif attribute_type is None:
        return None
    else:
        warnings.warn(f"Unsupported attribute type: {attribute_type}")
        return None
Map the attribute type to the corresponding AttributeType enum.
argilla/src/argilla/settings/_io/_hub.py