class_docstr: Tests :class:`texar.tf.run.executor.Executor`
      
docstr: Tests running seq2seq with Executor.
          
code: def test_execute_seq2seq(self):
      """Tests running seq2seq with Executor."""
      seq2seq = BasicSeq2seq(self._data_hparams)
      data_hparams = {
          "train": self._data_hparams,
          "eval": self._data_hparams,
      }
  
      model_dir = tempfile.mkdtemp()
      config = tf.estimator.RunConfig(
          model_dir=model_dir,
          save_summary_steps=10,
          save_checkpoints_steps=10,
          save_checkpoints_secs=None,
      )
  
      exor = Executor(
          model=seq2seq, data_hparams=data_hparams, config=config
      )
  
      exor.train_and_evaluate(max_train_steps=20, eval_steps=5)
  
      exor.train(max_steps=20)
      exor.evaluate(steps=5)
  
      shutil.rmtree(model_dir)
  
file_path: texar/tests/run/executor_test.py
imports: import tempfile
  import shutil
  import tensorflow
  from texar.tf.run.executor import Executor
  from texar.tf.models.seq2seq.basic_seq2seq import BasicSeq2seq
label_desc: Use image node_id 2 for calling the ExecutorTest obj's underlying member method code with example usage: obj.test_execute_seq2seq() without return types