code: def get_tensor(self, inp_str):
      # uid, txt, inp_str = self._get_data(idx)
      inp_str = inp_str + self.append_str
      if self.is_text:
          inp_toks = self.process_text(inp_str)
      else:
          inp_toks = self.process_code(inp_str)
      return torch.from_numpy(np.array(inp_toks)).long()
  
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 4 for calling the TacotronInputDataset obj's underlying member method code with example usage: obj.get_tensor(inp_str) and returns: torch