def test_generate_composite_key_raises_error_with_invalid_input():
    with pytest.raises(ValueError):
        generate_composite_key(None, 'UK')
    with pytest.raises(ValueError):
        generate_composite_key('city_only')
    with pytest.raises(ValueError):
        generate_composite_key(1, 2)
def test_generate_composite_key_raises_error_with_invalid_input():
    with pytest.raises(ValueError):
        generate_composite_key(None, 'UK')
    with pytest.raises(ValueError):
        generate_composite_key('city_only')
    with pytest.raises(ValueError):
        generate_composite_key(1, 2)