code: def test_process_final(self):
      my_mock = Metric("test")
      my_mock.process_final = Mock(return_value={"test": -1})
      metric = MetricList([my_mock])
      result = metric.process_final({"state": -1})
      self.assertEqual({"test": -1}, result)
      my_mock.process_final.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 6 for calling the TestMetricList obj's underlying member method code with example usage: obj.test_process_final() without return types