human
I wrote the below code

    L = []
    def value(x):
        return x
    def sideeffect(x):
        L.append(x)
        return x
    def unhashable_value(x):
        L.append(x)
        return set()
    s = None
    try:
        s = {f(i) for (i, f) in enumerate([value, sideeffect, value, unhashable_value, sideeffect], 1)}
    except TypeError:
        pass
    else:
        assert False, 'expected    exception    not    raised'
    return (s, L)

What's a good function header?

Here's a good function header?
assistant
#Here's a good function header.

def test_set_comp_sideeffect_unhashable_failure():