def METHOD_NAME(
    cobbler_api: CobblerAPI,
    create_distro: Callable[[str], distro.Distro],
    distro_collection: distros.Distros,
):
    # Arrange
    name = "duplicate_name"
    item1 = create_distro(name)
    distro_collection.add(item1)
    item2 = create_distro(name)
    # Act & Assert
    with pytest.raises(CX):
        distro_collection.add(item2, check_for_duplicate_names=True)