code: def setUp(self):
      super(TestApexCrit, self).setUp()
  
      import types
      import sys
  
      module_name = "apex"
      bogus_module = types.ModuleType(module_name)
      self.old_module = (
          sys.modules[module_name]
          if module_name in sys.modules
          else None
      )
      sys.modules[module_name] = bogus_module
      self.mock_amp = MagicMock(name=module_name + ".amp")
      bogus_module.amp = self.mock_amp
  
      from torchbearer.bases import apex_closure
  
      self.closure = apex_closure()
  
imports: import unittest
  from mock import Mock, MagicMock, create_autospec, patch
  import torch
  import torchbearer
  from torchbearer.bases import Metric, Callback, base_closure
  from torchbearer.metrics.primitives import CategoricalAccuracy
label_desc: Use image node_id 1 for calling the TestApexCrit obj's underlying member method code with example usage: obj.setUp() without return types