code: def test_process(self):
      my_mock = Metric("test")
      my_mock.process = Mock(return_value={"test": -1})
      metric = MetricList([my_mock])
      result = metric.process({"state": -1})
      self.assertEqual({"test": -1}, result)
      my_mock.process.assert_called_once_with({"state": -1})
  
imports: import unittest
  from mock import Mock
  from torchbearer.metrics import MetricList, Metric, MetricTree, AdvancedMetric
label_desc: Use image node_id 5 for calling the TestMetricList obj's underlying member method code with example usage: obj.test_process() without return types