def METHOD_NAME(attributes):
    fields = {
        key: value for key, value in attributes.items()
        if isinstance(value, BaseField)
    }
    taken_names = set()
    for name, field in fields.items():
        structue_name = field.structue_name(name)
        if structue_name in taken_names:
            raise ValueError('Name taken', structue_name, name)
        taken_names.add(structue_name)