code: def setUp(self):
      self._metric = Metric("test")
      self._metric.train = Mock()
      self._metric.eval = Mock()
      self._metric.reset = Mock()
      self._metric.process = Mock(return_value="process")
      self._metric.process_final = Mock(return_value="process_final")
  
      self._to_dict = ToDict(self._metric)
  
imports: import unittest
  import torch
  from mock import Mock, call
  from torch.autograd import Variable
  import torchbearer
  from torchbearer.metrics import Metric, BatchLambda, EpochLambda, ToDict
label_desc: Use image node_id 1 for calling the TestToDict obj's underlying member method code with example usage: obj.setUp() without return types