code: def test_eval_process_final(self):
      self._to_dict.eval()
      self.assertEqual(self._metric.eval.call_count, 1)
  
      self.assertTrue(
          self._to_dict.process_final("input")
          == {"val_test": "process_final"}
      )
      self._metric.process_final.assert_called_once_with("input")
  
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 5 for calling the TestToDict obj's underlying member method code with example usage: obj.test_eval_process_final() without return types