code: def id_to_torch(speaker_id, cuda=False):
      if speaker_id is not None:
          speaker_id = np.asarray(speaker_id)
          # TODO: test this for tacotron models
          speaker_id = torch.from_numpy(speaker_id)
      if cuda:
          return speaker_id.cuda()
      return speaker_id
  
file_path: TTS/TTS/tts/utils/synthesis.py
imports: import pkg_resources
  import torch
  import numpy
  from .text import text_to_sequence, phoneme_to_sequence
label_desc: Use image node_id 13 for calling a global function with example usage: id_to_torch(speaker_id, cuda) and returns: speaker_id, speaker_id