human
Complete this python program:
def enable_call_trace():
assistant
#Here is the Python code you requested.

    """Enable trace for calls to any function.
    """
    def tracer(frame, event, arg):
        if (event == 'call'):
            co = frame.f_code
            func_name = co.co_name
            if ((func_name == 'write') or (func_name == 'print')):
                return
            func_line_no = frame.f_lineno
            func_filename = co.co_filename
            caller = frame.f_back
            if caller:
                caller_line_no = caller.f_lineno
                caller_filename = caller.f_code.co_filename
                print ('Call    to    `%s`    on    line    %s:%s    from    %s:%s' % (func_name, func_filename, func_line_no, caller_filename, caller_line_no))
            return
    sys.settrace(tracer)