code: def test_reset_after_eval(self, cat_acc):
      metric = DefaultAccuracy()
      self.assertTrue(cat_acc.call_count == 1)
      cat_acc.reset_mock()
      metric.eval()
  
      state = {
          torchbearer.CRITERION: F.cross_entropy,
          torchbearer.DATA: "test",
      }
      mock = Mock()
      mock.eval = Mock()
      torchbearer.metrics.default.__loss_map__[
          F.cross_entropy.__name__
      ] = lambda: mock
  
      metric.reset(state)
  
      mock.eval.assert_called_once_with(data_key="test")
      self.assertTrue(mock.eval.call_count == 1)
  
file_path: torchbearer/tests/metrics/test_default.py
imports: import unittest
  from mock import Mock, patch
  import torch.nn
  import torch.nn.functional
  import torchbearer
  from torchbearer.metrics import DefaultAccuracy
label_desc: Use image node_id 3 for calling the TestDefaultAccuracy obj's underlying member method code with example usage: obj.test_reset_after_eval(cat_acc) without return types