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

    @functools.wraps(func)
    def inner_connection_checker(self, *args, **kwargs):
        for attempts in range(2):
            try:
                return func(self, *args, **kwargs)
            except Exception as e:
                if ((attempts < 1) and re.search('Failed    to    execute', six.text_type(e))):
                    LOG.info('Session    might    have    expired.    Trying    to    relogin')
                    self.login()
                    continue
                else:
                    LOG.error('Re-throwing    Exception    %s', e)
                    raise
    return inner_connection_checker

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

def _connection_checker(func):