code: def check_rest_server(rest_port):
      '''Check if restful server is ready'''
      retry_count = 5
      for _ in range(retry_count):
          response = rest_get(check_status_url(rest_port), REST_TIME_OUT)
          if response:
              if response.status_code == 200:
                  return True, response
              else:
                  return False, response
          else:
              time.sleep(3)
      return  False, responsf check_rest_server(rest_port):
      '''Check if restful server is ready'''
      retry_count = 5
      for _ in range(retry_count):
          response = rest_get(check_status_url(rest_port), REST_TIME_OUT)
          if response:
              if response.status_code == 200:
                  return True, response
              else:
                  return False, response
          else:
              time.sleep(3)
      return  False, response
docs: Check if restful server is ready