def METHOD_NAME(self, domain, tag, col_names, rows, is_global=True, is_synced=False):
    columns = [TypeField(name=col_name) for col_name in col_names]
    table = LookupTable.objects.create(
        domain=domain, tag=tag, fields=columns, is_global=is_global, is_synced=is_synced)
    for i, row in enumerate(rows):
        fields = {key: [Field(value=val)] for (key, val) in row.items()}
        LookupTableRow.objects.create(domain=domain, table_id=table.id, fields=fields, sort_key=i)
    return table