code: def __init__(self, hparams, append_str=""):
      self.is_text = getattr(hparams, "text_or_code", "text") == "text"
      if not self.is_text:
          self.code_dict = load_code_dict(hparams.code_dict)
          self.code_key = hparams.code_key
      self.add_sos = hparams.add_sos
      self.add_eos = hparams.add_eos
      self.collapse_code = hparams.collapse_code
      self.append_str = append_str
  
file_path: textlesslib/textless/vocoders/tacotron2/tts_data.py
imports: import torch
  import numpy
  from .text import EOS_TOK, SOS_TOK, code_to_sequence, text_to_sequence
  from .utils import load_code_dict
label_desc: Use image node_id 1 to create a new TacotronInputDataset object  with example: obj = TacotronInputDataset(hparams, append_str)