code: def http_response_to_ndarray(response):
      if response.status_code == 200:
          response_str = response.text
          return http_json_to_ndarray(response_str)
      elif response.status_code == 400:
          print("Invalid input format, valid example:")
          print(
              """{
  "instances": [
     {
       "tag": "foo",
       "signal": [1, 2, 3, 4, 5],
       "sensor": [[1, 2], [3, 4]]
     }
  ]
  }
  """
          )
      else:
          print(
              "Error when calling Cluster Serving Http server, error code:",
              response.status_code,
          )
      print(
          "WARNING: Server returns invalid response, so you will get []"
      )
      return "[]"
  
imports: import redis
  import time
  from zoo.serving.schema import *
  import httpx
  import json
  import uuid
label_desc: Use image node_id 2 for calling a global function with example usage: http_response_to_ndarray(response) and returns: str, http_json_to_ndarray