def METHOD_NAME(
    name: str, permissions: typing.List[Permission], override: bool = False
):
    group, created = users.Group.objects.get_or_create(name=name)
    if created or override:
        group.permissions.set(permissions)
        group.save()