code: def test_s2s_forecaster_onnx_methods(self):
      train_data, val_data, test_data = create_data()
      forecaster = Seq2SeqForecaster(
          past_seq_len=24,
          future_seq_len=5,
          input_feature_num=1,
          output_feature_num=1,
          loss="mae",
          lr=0.01,
      )
      forecaster.fit(train_data, epochs=2)
      try:
          import onnx
          import onnxruntime
  
          pred = forecaster.predict(test_data[0], acceleration=False)
          pred_onnx = forecaster.predict_with_onnx(test_data[0])
          np.testing.assert_almost_equal(pred, pred_onnx, decimal=5)
          mse = forecaster.evaluate(
              test_data, multioutput="raw_values", acceleration=False
          )
          mse_onnx = forecaster.evaluate_with_onnx(
              test_data, multioutput="raw_values"
          )
          np.testing.assert_almost_equal(mse, mse_onnx, decimal=5)
          with pytest.raises(RuntimeError):
              forecaster.build_onnx(sess_options=1)
          forecaster.build_onnx(thread_num=1)
          mse = forecaster.evaluate(test_data, acceleration=False)
          mse_onnx = forecaster.evaluate_with_onnx(test_data)
          np.testing.assert_almost_equal(mse, mse_onnx, decimal=5)
      except ImportError:
          pass
  
imports: import numpy
  import tempfile
  import os
  from bigdl.chronos.utils import LazyImport
  from unittest import TestCase
  import pytest
  from ..None import op_torch, op_distributed, op_inference, op_automl
label_desc: Use image node_id 5 for calling the TestChronosModelSeq2SeqForecaster obj's underlying member method code with example usage: obj.test_s2s_forecaster_onnx_methods() without return types