def METHOD_NAME(
    premium_data_fixture, alternative_per_workspace_license_service
):
    user = premium_data_fixture.create_user(
        first_name="Test User", has_active_premium_license=True
    )
    table = premium_data_fixture.create_database_table(user=user)
    handler = ViewHandler()
    alternative_per_workspace_license_service.restrict_user_premium_to(
        user, [table.database.workspace.id]
    )
    handler.create_view(
        user=user, table=table, type_name="form", name="Form", mode="survey"
    )