code: def add(self, name, time):
      self.tot += time
      self.times.append((name, time))
  
imports: import traceback
  from contextlib import contextmanager
  from time import perf_counter
  from ..compat import tfv1
  from ..utils import logger
  from ..utils.utils import humanize_time_delta
  from .base import Callback
  from .hooks import CallbackToHook
label_desc: Use image node_id 2 for calling the CallbackTimeLogger obj's underlying member method code with example usage: obj.add(name, time) without return types