def METHOD_NAME(domain, location_types):
    location_types_dict = {}
    previous = None
    for name in location_types:
        location_type = LocationType.objects.create(
            domain=domain,
            name=name,
            parent_type=previous,
            administrative=True,
        )
        location_types_dict[name] = previous = location_type
    return location_types_dict