code: def ls_t5(model, inputs):
      torch.cuda.synchronize()
      start_time = time.perf_counter()
      generated_ids = model.infer(inputs)
      torch.cuda.synchronize()
      end_time = time.perf_counter()
      return generated_ids, end_time - start_time
  
file_path: lightseq/examples/inference/python/test/ls_t5.py
imports: import time
  import argparse
  import torch
  import lightseq.inference
  from transformers import T5Tokenizer, T5ForConditionalGeneration
  import sentencepiece
label_desc: Use image node_id 1 for calling a global function with example usage: ls_t5(model, inputs) and returns: generated_ids,  unknown