code: def test_trainable_variable(self):
      path = test_utils.get_test_data_path("hub_module_v1_mini_train")
      layer = hub_loader.HubKerasLayerV1V2(path, trainable=True)
      # Checks trainable variables.
      self.assertLen(layer.trainable_variables, 2)
      self.assertEqual(layer.trainable_variables[0].name, "a:0")
      self.assertEqual(layer.trainable_variables[1].name, "b:0")
      self.assertEqual(layer.variables, layer.trainable_variables)
      # Checks non-trainable variables.
      self.assertEmpty(layer.non_trainable_variables)
  
      layer = hub_loader.HubKerasLayerV1V2(path, trainable=False)
      # Checks trainable variables.
      self.assertEmpty(layer.trainable_variables)
      # Checks non-trainable variables.
      self.assertLen(layer.non_trainable_variables, 2)
      self.assertEqual(layer.non_trainable_variables[0].name, "a:0")
      self.assertEqual(layer.non_trainable_variables[1].name, "b:0")
      self.assertEqual(layer.variables, layer.non_trainable_variables)
  
file_path: mediapipe/mediapipe/model_maker/python/core/utils/hub_loader_test.py
imports: from absl.testing import parameterized
  import tensorflow
  from mediapipe.model_maker.python.core.utils import hub_loader
  from mediapipe.tasks.python.test import test_utils
label_desc: Use image node_id 2 for calling the HubKerasLayerV1V2Test obj's underlying member method code with example usage: obj.test_trainable_variable() without return types