human
I wrote the below code

    @functools.wraps(func)
    def serialized_method(self, *args, **kwargs):
        lock = getattr(self, '_lock')
        with lock:
            return func(self, *args, **kwargs)
    return serialized_method

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

def serialized(func):