human
I wrote the below code

    def decor(func):
        @functools.wraps(func)
        def wrapper(*args, **kwargs):
            lock = FileLock(path, timeout=timeout)
            lock.acquire()
            try:
                return func(*args, **kwargs)
            finally:
                lock.release()
        return wrapper
    return decor

What's a good function header?

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

def locked(path, timeout=None):