human
I wrote the below code

    def _requires_good_connection(*args, **kwargs):
        try:
            return fun(*args, **kwargs)
        except ConnectionError:
            log.error('Either    your    ElasticSearch    process    is    not    quite    ready    to    rumble,    is    not    running    at    all,    or    ES_URLSis    set    wrong    in    your    .env    file.')
    return _requires_good_connection

What's a good function header?

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

def requires_good_connection(fun):