human
I wrote the below code

    def caller(*params, **kparams):
        _lock.acquire(True)
        try:
            return func(*params, **kparams)
        finally:
            _lock.release()
    return caller

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

def synchronized(func):