code: def request_data(data, ip="localhost", port=None):
      resp = requests.put(
          f"http://{ip}:{port}/knn",
          data=json.dumps(data),
          headers=headers,
      )
      return resp.json()
  
imports: import json
  import threading
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: request_data(data, ip, port) and returns: resp