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

    def check_fn(self, *args, **kwargs):
        interact_lock.acquire()
        try:
            if self.filename:
                self.clear_interaction()
                return fn(self, *args, **kwargs)
        finally:
            interact_lock.release()
    return check_fn

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

def check_interaction(fn):