code: def test_all_modules_covered(self):
      allow_no_checkpoint = set(
          [
              # TODO(petebu): Remove this once optimizer goldens check works.
              snt.optimizers.Adam,
              snt.optimizers.Momentum,
              snt.optimizers.RMSProp,
              snt.optimizers.SGD,
              # Stateless or abstract.
              snt.BatchApply,
              snt.DeepRNN,
              snt.Deferred,
              snt.Flatten,
              snt.Metric,
              snt.Module,
              snt.Optimizer,
              snt.Reshape,
              snt.RNNCore,
              snt.Sequential,
              snt.UnrolledRNN,
              # Tested via snt.nets.ResNet
              snt.nets.ResNet50,
              snt.nets.resnet.BottleNeckBlockV1,
              snt.nets.resnet.BottleNeckBlockV2,
              snt.nets.resnet.BlockGroup,
          ]
      )
  
      # Find all the snt.Module types reachable from `import sonnet as snt`
      all_sonnet_types = set()
      for _, python_module in test_utils.find_sonnet_python_modules(
          snt
      ):
          for _, cls in inspect.getmembers(
              python_module, inspect.isclass
          ):
              if issubclass(cls, snt.Module):
                  all_sonnet_types.add(cls)
  
      # Find all the modules that have checkpoint tests.
      tested_modules = {
          module_cls for module_cls, _, _ in goldens.list_goldens()
      }
  
      # Make sure we don't leave entries in allow_no_checkpoint if they are
      # actually tested.
      self.assertEmpty(tested_modules & allow_no_checkpoint)
  
      # Make sure everything is covered.
      self.assertEqual(
          tested_modules | allow_no_checkpoint, all_sonnet_types
      )
  
imports: import inspect
  import sonnet
  from sonnet.src import test_utils
  from sonnet.src.conformance import goldens
  import tensorflow
label_desc: Use image node_id 1 for calling the CoverageTest obj's underlying member method code with example usage: obj.test_all_modules_covered() without return types