code: def test_lstm_freeze_training(self):
      # freeze dropout in layers
      train_data, val_data, test_data = create_data()
      model = model_creator(
          config={
              "input_feature_num": 4,
              "output_feature_num": test_data[-1].shape[-1],
          }
      )
      _freeze_yhat = model(test_data[0], training=False)
      freeze_yhat = model(test_data[0], training=False)
      assert np.all(_freeze_yhat == freeze_yhat)
  
      _unfreeze_yhat = model(test_data[0], training=True)
      unfreeze_yhat = model(test_data[0], training=True)
      assert np.any(_unfreeze_yhat != unfreeze_yhat)
  
file_path: BigDL/python/chronos/test/bigdl/chronos/model/tf2/test_VanillaLSTM_keras.py
imports: import pytest
  from unittest import TestCase
  from ...None import op_tf2
  import numpy
  import tempfile
  import os
  from bigdl.chronos.utils import LazyImport
label_desc: Use image node_id 5 for calling the TestVanillaLSTM obj's underlying member method code with example usage: obj.test_lstm_freeze_training() without return types