human
I wrote the below code

    if (not hasattr(sys, 'gettrace')):
        return func
    else:
        def wrapper(*args, **kwargs):
            original_trace = sys.gettrace()
            try:
                sys.settrace(None)
                return func(*args, **kwargs)
            finally:
                sys.settrace(original_trace)
        wrapper.__name__ = func.__name__
        return wrapper

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

def no_tracing(func):