def METHOD_NAME(backend):
    """Test the ``get_or_create_group`` method of ``Autogroup``."""
    label_prefix = 'test_prefix_TestAutogroup'
    # Check that there are no groups to begin with
    queryb = QueryBuilder(backend).append(AutoGroup, filters={'label': label_prefix})
    assert not list(queryb.all())
    queryb = QueryBuilder(backend).append(AutoGroup, filters={'label': {'like': r'{}\_%'.format(label_prefix)}})
    assert not list(queryb.all())
    # First group (no existing one)
    autogroup = AutogroupManager(backend)
    autogroup.set_group_label_prefix(label_prefix)
    group = autogroup.get_or_create_group()
    expected_label = label_prefix
    assert group.label == expected_label, (
        f"The auto-group should be labelled '{expected_label}', it is instead '{group.label}'"
    )
    # Second group (only one with no suffix existing)
    autogroup = AutogroupManager(backend)
    autogroup.set_group_label_prefix(label_prefix)
    group = autogroup.get_or_create_group()
    expected_label = f'{label_prefix}_1'
    assert group.label == expected_label, (
        f"The auto-group should be labelled '{expected_label}', it is instead '{group.label}'"
    )
    # Second group (only one suffix _1 existing)
    autogroup = AutogroupManager(backend)
    autogroup.set_group_label_prefix(label_prefix)
    group = autogroup.get_or_create_group()
    expected_label = f'{label_prefix}_2'
    assert group.label == expected_label, (
        f"The auto-group should be labelled '{expected_label}', it is instead '{group.label}'"
    )
    # I create a group with a large integer suffix (9)
    AutoGroup(label=f'{label_prefix}_9').store()
    # The next autogroup should become number 10
    autogroup = AutogroupManager(backend)
    autogroup.set_group_label_prefix(label_prefix)
    group = autogroup.get_or_create_group()
    expected_label = f'{label_prefix}_10'
    assert group.label == expected_label, (
        f"The auto-group should be labelled '{expected_label}', it is instead '{group.label}'"
    )
    # I create a group with a non-integer suffix (15a), it should be ignored
    AutoGroup(label=f'{label_prefix}_15b').store()
    # The next autogroup should become number 11
    autogroup = AutogroupManager(backend)
    autogroup.set_group_label_prefix(label_prefix)
    group = autogroup.get_or_create_group()
    expected_label = f'{label_prefix}_11'
    assert group.label == expected_label, (
        f"The auto-group should be labelled '{expected_label}', it is instead '{group.label}'"
    )