code: def test_train(self):
      metric = AdvancedMetric("test")
      metric.process_train = Mock()
      metric.process_final_train = Mock()
  
      metric.train()
      metric.process("testing")
      metric.process_train.assert_called_once_with("testing")
  
      metric.process_final("testing")
      metric.process_final_train.assert_called_once_with("testing")
  
imports: import unittest
  from mock import Mock
  from torchbearer.metrics import MetricList, Metric, MetricTree, AdvancedMetric
label_desc: Use image node_id 2 for calling the TestAdvancedMetric obj's underlying member method code with example usage: obj.test_train() without return types