code: def total_timer(msg):
      """A context which add the time spent inside to the global TotalTimer."""
      start = timer()
      yield
      t = timer() - start
      _TOTAL_TIMER_DATA[msg].feed(t)
  
imports: import atexit
  from collections import defaultdict
  from contextlib import contextmanager
  from time import perf_counter
  from .None import logger
  from .stats import StatCounter
label_desc: Use image node_id 2 for calling a global function with example usage: total_timer(msg) without return types