class_docstr: Tests :class:`texar.tf.run.executor.Executor`
      
code: def setUp(self):
      tf.test.TestCase.setUp(self)
  
      # Create data
      vocab_list = ["This", "is", "a", "word", "词"]
      vocab_file = tempfile.NamedTemporaryFile()
      vocab_file.write("\n".join(vocab_list).encode("utf-8"))
      vocab_file.flush()
      self._vocab_file = vocab_file
      self._vocab_size = len(vocab_list)
  
      src_text = ["This is a sentence from source .", "词 词 。 source"]
      src_text_file = tempfile.NamedTemporaryFile()
      src_text_file.write("\n".join(src_text).encode("utf-8"))
      src_text_file.flush()
      self._src_text_file = src_text_file
  
      tgt_text = ["This is a sentence from target .", "词 词 。 target"]
      tgt_text_file = tempfile.NamedTemporaryFile()
      tgt_text_file.write("\n".join(tgt_text).encode("utf-8"))
      tgt_text_file.flush()
      self._tgt_text_file = tgt_text_file
  
      self._data_hparams = {
          "num_epochs": 20,
          "batch_size": 2,
          "source_dataset": {
              "files": [self._src_text_file.name],
              "vocab_file": self._vocab_file.name,
          },
          "target_dataset": {
              "files": self._tgt_text_file.name,
              "vocab_share": True,
          },
      }
  
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 1 for calling the ExecutorTest obj's underlying member method code with example usage: obj.setUp() without return types