def METHOD_NAME() -> None:
    single_element = [1]
    assert 1 == assert_single_element(single_element)
    no_elements: list[int] = []
    with pytest.raises(StopIteration):
        assert_single_element(no_elements)
    too_many_elements = [1, 2]
    with pytest.raises(ValueError) as cm:
        assert_single_element(too_many_elements)
    expected_msg = "iterable [1, 2] has more than one element."
    assert expected_msg == str(cm.value)