code: def validate_prompt_latency_SLA(response_detail, sla_token_gen, f):
      tokenizer = get_tokenizer()
      prompt_length = len(tokenizer.tokenize(response_detail.prompt))
      prompt_latency_SLA = prompt_length / SLA_PROMPT_TOKENS_PER_SEC
      if prompt_latency_SLA < response_detail.token_gen_time[0]:
          return False
  
      if len(response_detail.token_gen_time) == 1:
          return True
  
      return f[0](response_detail, sla_token_gen, *f[1])
  
file_path: deepspeedexamples/benchmarks/inference/mii/plot_effective_throughput.py
imports: import argparse
  from pathlib import Path
  import glob
  import matplotlib.pyplot
  import numpy
  import pandas
  from postprocess_results import read_json, get_tokenizer
label_desc: Use image node_id 5 for calling a global function with example usage: validate_prompt_latency_SLA(response_detail, sla_token_gen, f) and returns: f, False, True