code: def update_time(self, text, metric, state):
      self.time_dict[text] = metric.process(state)
      state[torchbearer.TIMINGS] = self.time_dict
  
imports: from __future__ import print_function
  import sys
  import time
  from torchbearer.callbacks import Callback
  import torchbearer
  from torchbearer.metrics import Metric
label_desc: Use image node_id 2 for calling the TimerMetric obj's underlying member method code with example usage: obj.update_time(text, metric, state) without return types