code: def moss_tokenize(prompt, tokenizer, cutoff_len, add_eos_token=True):
      result = tokenizer(
          prompt,
          truncation=True,
          max_length=cutoff_len,
          padding=False,
      )
      if (
          result["input_ids"][-1] != tokenizer.eos_token_id
          and len(result["input_ids"]) < cutoff_len
          and add_eos_token
      ):
          result["input_ids"].append(tokenizer.eos_token_id)
          result["attention_mask"].append(1)
      result["labels"] = result["input_ids"].copy()
  
      return result
  
label_desc: Use image node_id 1 for calling a global function with example usage: moss_tokenize(prompt, tokenizer, cutoff_len, add_eos_token) and returns: result