human
I wrote the below code

    @wraps(fn)
    def core(*args, **kwargs):
        with _cuda_compiler_lock:
            return fn(*args, **kwargs)
    return core

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

def nonthreadsafe(fn):