human
Here's a good function header given the following:
I wrote the below code

    class numpy_like(object, ):
        def __eq__(self, other):
            if (type(other) is numpy_like):
                raise ValueError('The    truth    value    of    an    array    with    more    than    one    element    is    ambiguous.')
    def a(x):
        return b(numpy_like())
    def b(x):
        return a(numpy_like())
    try:
        a(numpy_like())
    except:
        from _pytest._code.code import ExceptionInfo
        from _pytest.pytester import LineMatcher
        exc_info = ExceptionInfo()
        matcher = LineMatcher(str(exc_info.getrepr()).splitlines())
        matcher.fnmatch_lines(['!!!    Recursion    error    detected,    but    an    error    occurred    locating    the    origin    of    recursion.', '*The    following    exception    happened*', '*ValueError:    The    truth    value    of    an    array*'])

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

def test_exception_repr_extraction_error_on_recursion():