code: def reset_trace():
      
      global call_dict
      global call_stack
      global func_count
      global func_count_max
      global func_time
      global func_time_max
      global call_stack_timer
  
      call_dict = {}
  
      # current call stack
      call_stack = ['__main__']
  
      # counters for each function
      func_count = {}
      func_count_max = 0
  
      # accumative time per function
      func_time = {}
      func_time_max = 0
  
      # keeps track of the start time of each call on the stack
      call_stack_timer = []
docs: Resets all collected statistics. This is run automatically by
      start_trace(reset=True) and when the module is loaded.