code: def run_full_generation(
      hubert_encoder, twist_model, hifi_vocoder, speech_prompt
  ):
      input_ids = hubert_encoder(speech_prompt)["units"].unsqueeze(0)
      generated_ids = generate_with_offset(twist_model, input_ids)
      full_generation = hifi_vocoder(generated_ids, dur_prediction=True)
  
      return full_generation
  
file_path: textlesslib/examples/twist/twist_generation.py
imports: import torchaudio
  import torch
  from speech_lm import generate_with_offset, build_speech_lm
  from textless.vocoders.hifigan.vocoder import CodeHiFiGANVocoder
  from textless.data.speech_encoder import SpeechEncoder
label_desc: Use image node_id 1 for calling a global function with example usage: run_full_generation(hubert_encoder, twist_model, hifi_vocoder, speech_prompt) and returns: full_generation