code: def test_base_use_case(self):
      x, y = ChineseDailyNerCorpus.load_data("test")
      x = x[:200]
      y = y[:200]
      seq2seq = Seq2Seq(
          hidden_size=64, encoder_seq_length=64, decoder_seq_length=64
      )
      seq2seq.fit(x, y, epochs=1)
      res, att = seq2seq.predict(x)
  
      model_path = os.path.join(tempfile.gettempdir(), str(time.time()))
      seq2seq.save(model_path)
  
      s2 = Seq2Seq.load_model(model_path)
      res2, att2 = s2.predict(x)
  
      assert res2 == res
      assert (att2 == att).all()
  
file_path: Kashgari/tests/test_seq2seq/test_seq2seq.py
imports: import os
  import time
  import unittest
  import tempfile
  from kashgari.tasks.seq2seq import Seq2Seq
  from kashgari.corpus import ChineseDailyNerCorpus
label_desc: Use image node_id 1 for calling the TestSeq2Seq obj's underlying member method code with example usage: obj.test_base_use_case() without return types