code: def create_job_and_poll(request_num):
      print(f"Creating a job on the proxy for request {request_num}")
      job_response = requests.post(
          url=f"{base_url}/queue/request",
          json={
              "model": "gpt-3.5-turbo",
              "messages": [
                  {"role": "system", "content": "write a short poem"},
              ],
          },
          headers={"Authorization": f"Bearer {generated_key}"},
      )
      print(job_response.status_code)
      print(job_response.text)
      print("\nResponse from creating job", job_response.text)
      job_response = job_response.json()
      job_id = job_response["id"]
      polling_url = job_response["url"]
      polling_url = f"{base_url}{polling_url}"
      print(f"\nCreated Job {request_num}, Polling Url {polling_url}")
  
      # Poll each request
      while True:
          try:
              print(
                  f"\nPolling URL for request {request_num}",
                  polling_url,
              )
              polling_response = requests.get(
                  url=polling_url,
                  headers={"Authorization": f"Bearer {generated_key}"},
              )
              print(
                  f"\nResponse from polling url for request {request_num}",
                  polling_response.text,
              )
              polling_response = polling_response.json()
              status = polling_response.get("status", None)
              if status == "finished":
                  llm_response = polling_response["result"]
                  print(f"LLM Response for request {request_num}")
                  print(llm_response)
                  # Write the llm_response to load_test_log.txt
                  try:
                      with open(
                          "load_test_log.txt", "a"
                      ) as response_file:
                          response_file.write(
                              f"Response for request: {request_num}\n{llm_response}\n\n"
                          )
                  except Exception as e:
                      print("GOT EXCEPTION", e)
                  break
              time.sleep(0.5)
          except Exception as e:
              print("got exception when polling", e)
  
imports: import requests
  import time
  import os
  from dotenv import load_dotenv
  import concurrent.futures
label_desc: Use image node_id 1 for calling a global function with example usage: create_job_and_poll(request_num) without return types