code: def throughput_helper(model, x):
      st = time.time()
      model(x)
      return time.time() - st, torch.get_num_threads()
  
file_path: BigDL/python/nano/test/pytorch/tests/test_utils.py
imports: import tempfile
  import os
  import torch
  import time
  from bigdl.nano.utils.common import spawn_new_process
  from torchvision.models import resnet18
label_desc: Use image node_id 1 for calling a global function with example usage: throughput_helper(model, x) and returns: unknown,  torch