code: def test_AutoTrainer_LstmRecipe(self):
      horizon = np.random.randint(1, 6)
      tsp = AutoTSTrainer(
          dt_col="datetime",
          target_col="value",
          horizon=horizon,
          extra_features_col=None,
      )
      pipeline = tsp.fit(
          self.train_df,
          self.validation_df,
          recipe=LSTMGridRandomRecipe(
              num_rand_samples=5,
              batch_size=[1024],
              lstm_2_units=[8],
              training_iteration=1,
              epochs=1,
          ),
      )
      assert isinstance(pipeline, TSPipeline)
      assert pipeline.internal.config is not None
      evaluate_result = pipeline.evaluate(self.validation_df)
      if horizon > 1:
          assert evaluate_result[0].shape[0] == horizon
      else:
          assert evaluate_result[0]
      predict_df = pipeline.predict(self.validation_df)
      assert not predict_df.empty
  
file_path: analytics-zoo/pyzoo/test/zoo/chronos/autots/deprecated/test_auto_ts.py
imports: import pytest
  import numpy
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.autots.deprecated.config.recipe import LSTMGridRandomRecipe, MTNetGridRandomRecipe
  from zoo.chronos.autots.deprecated.forecast import AutoTSTrainer
  from zoo.chronos.autots.deprecated.forecast import TSPipeline
  import pandas
label_desc: Use image node_id 5 for calling the TestChronosAutoTS obj's underlying member method code with example usage: obj.test_AutoTrainer_LstmRecipe() without return types