human
I wrote the below code

    def wrap(self, *default_args, **default_kwargs):
        try:
            self.client.connect(self.server, self.port)
        except:
            pass
        try:
            return func(self, *default_args, **default_kwargs)
        except:
            self.client = mpd.MPDClient()
            self.client.timeout = None
            self.client.idletimeout = None
            self.client.connect(self.server, self.port)
            return func(self, *default_args, **default_kwargs)
    return wrap

What's a good function header?

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

def reconnect(func, *default_args, **default_kwargs):