code: def test_keras_layer_inside_sonnet_module(self):
      mod = ModuleWithLayer()
      mod(tf.ones([1, 1]))
      self.assertEqual(mod.submodules, (mod.dense,))
      self.assertLen(mod.variables, 2)
      self.assertLen(mod.trainable_variables, 2)
  
      # Test that layer freezing does not change tf.Module tracking.
      mod.dense.trainable = False
      self.assertLen(mod.variables, 2)
      self.assertLen(mod.trainable_variables, 2)
  
imports: from absl.testing import parameterized
  import sonnet
  from sonnet.src import test_utils
  from sonnet.src.conformance import descriptors
  import tensorflow
  import tree
label_desc: Use image node_id 7 for calling the KerasTest obj's underlying member method code with example usage: obj.test_keras_layer_inside_sonnet_module() without return types