code: def single_thread_client(client, ids, k, timer):
      result_dict = dict()
      for id in ids:
          search_start = time.perf_counter()
          results = client.search(id, k)
          result_dict[id] = results
          print(id, ":", results)
          search_end = time.perf_counter()
          timer.add(search_end - search_start)
  
imports: import logging
  import grpc
  from friesian.example.serving.generated import recall_pb2_grpc, recall_pb2
  import os
  import pandas
  import argparse
  import time
  import threading
  from urllib.parse import urlparse
  from os.path import exists
  from bigdl.dllib.utils import log4Error
label_desc: Use image node_id 2 for calling a global function with example usage: single_thread_client(client, ids, k, timer) without return types