code: def test_basic_use(self):
      model = self.TASK_MODEL_CLASS(sequence_length=20)
      train_x, train_y = SMP2018ECDTCorpus.load_data()
      valid_x, valid_y = train_x, train_y
  
      model.fit(
          train_x,
          train_y,
          x_validate=valid_x,
          y_validate=valid_y,
          epochs=self.EPOCH_COUNT,
      )
  
      model_path = os.path.join(tempfile.gettempdir(), str(time.time()))
      original_y = model.predict(train_x[:20])
      model.save(model_path)
  
      # Make sure use sigmoid as activation function
      assert model.tf_model.layers[-1].activation.__name__ == "softmax"
  
      del model
      new_model = self.TASK_MODEL_CLASS.load_model(model_path)
      new_model.tf_model.summary()
      new_y = new_model.predict(train_x[:20])
      assert new_y == original_y
  
      report = new_model.evaluate(valid_x, valid_y)
      for key in [
          "precision",
          "recall",
          "f1-score",
          "support",
          "detail",
      ]:
          assert key in report
  
      # Make sure use sigmoid as activation function
      assert (
          new_model.tf_model.layers[-1].activation.__name__ == "softmax"
      )
  
      # TF Serving Test
      from kashgari.utils import convert_to_saved_model
  
      convert_to_saved_model(
          new_model, os.path.join(model_path, "serving"), version=1
      )
  
      from kashgari.processors import load_processors_from_model
  
      _ = load_processors_from_model(
          os.path.join(model_path, "serving", "1")
      )
  
file_path: Kashgari/tests/test_classification/test_bi_lstm_model.py
imports: import os
  import tempfile
  import time
  import unittest
  from kashgari.corpus import SMP2018ECDTCorpus
  from kashgari.embeddings import WordEmbedding
  from kashgari.tasks.classification import BiLSTM_Model
  from tests.test_macros import TestMacros
label_desc: Use image node_id 3 for calling the TestBiLSTM_Model obj's underlying member method code with example usage: obj.test_basic_use() without return types