code: def timed_callback(self, name):
      s = timer()
      yield
      self.add(name, timer() - s)
  
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 3 for calling the CallbackTimeLogger obj's underlying member method code with example usage: obj.timed_callback(name) without return types