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

    lock = threading.RLock()
    def decorator(*args, **kwargs):
        with lock:
            v = function(*args, **kwargs)
        return v
    return decorator

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

def threadsafe(function):