code: def translate(text, src_lang, tgt_lang):
      """
      Translate the text from source lang to target lang
      """
      translation_pipeline = pipeline(
          "translation",
          model=model,
          tokenizer=tokenizer,
          src_lang=src_lang,
          tgt_lang=tgt_lang,
          max_length=400,
          device=device,
      )
      result = translation_pipeline(text)
      return result[0]["translation_text"]
  
label_desc: Use image node_id 1 for calling a global function with example usage: translate(text, src_lang, tgt_lang) and returns: result