code: def test_on_end_training(self):
      def example(state):
          return state
  
      state = "test"
      self.assertTrue(
          callbacks.on_end_training(example).on_end_training(state)
          == state
      )
  
imports: import unittest
  import torchbearer.callbacks
  import torchbearer
label_desc: Use image node_id 12 for calling the TestDecorators obj's underlying member method code with example usage: obj.test_on_end_training() and returns: state