code: def test_update_time(self):
      timer = TimerMetric("test")
      timerMetric = TimerMetric("test2")
      timerMetric.process = Mock(return_value=1)
      timer.update_time("test", timerMetric, {})
      self.assertTrue(timer.get_timings()["test"] == 1)
  
      timerMetric.process = Mock(return_value=2)
      timer.update_time("test_2", timerMetric, {})
      self.assertTrue(timer.get_timings()["test_2"] == 2)
  
file_path: torchbearer/tests/metrics/test_timer.py
imports: from unittest import TestCase
  from mock import Mock, MagicMock, patch
  import torchbearer
  from torchbearer.metrics.timer import TimerMetric, _TimerMetric
label_desc: Use image node_id 1 for calling the TestTimer obj's underlying member method code with example usage: obj.test_update_time() without return types