code: def ls_ppl(model, tokenizer, inputs):
      print("=========lightseq=========")
      print("lightseq calculating ppl...")
      ls_ppl, ls_time = ls_gpt2(model, inputs, "ppl")
      print(f"lightseq time: {ls_time}s")
      print("lightseq results:")
      print(ls_ppl)
  
file_path: lightseq/examples/inference/python/test/ls_gpt2_bench.py
imports: import time
  import argparse
  import torch
  import lightseq.inference
  from transformers import GPT2Tokenizer, GPT2LMHeadModel
label_desc: Use image node_id 6 for calling a global function with example usage: ls_ppl(model, tokenizer, inputs) without return types