code: def throughput_calculate_helper(iterrun, func, model, input_sample):
      """
      A simple helper to calculate average latency
      """
      time_list = []
      for i in range(iterrun):
          st = time.perf_counter()
          func(model, input_sample)
          end = time.perf_counter()
          time_list.append(end - st)
      time_list.sort()
      # remove top and least 10% data
      time_list = time_list[int(0.1 * iterrun) : int(0.9 * iterrun)]
      return np.mean(time_list) * 1000
  
file_path: BigDL/python/nano/src/bigdl/nano/tf/keras/inference/_worker.py
imports: import time
  import sys
  import numpy
  import cloudpickle
  import tensorflow
  import os
  from bigdl.nano.tf.keras import InferenceOptimizer
label_desc: Use image node_id 1 for calling a global function with example usage: throughput_calculate_helper(iterrun, func, model, input_sample) and returns: unknown