code: def call_get_with_retries(
      http_client, url_route, max_retries=4, retry_delay=60
  ):
      """Call http get on route with retries until successful."""
      for i in range(max_retries):
          try:
              print(
                  "Calling get attempt {0} of {1}".format(
                      i + 1, max_retries
                  )
              )
              response = http_client.get(url_route)
              break
          except Exception as e:  # noqa: B902
              print("Calling get attempt failed with exception:")
              print(e)
              if i + 1 != max_retries:
                  print(
                      "Will retry after {0} seconds".format(retry_delay)
                  )
                  time.sleep(retry_delay)
                  retry_delay = retry_delay * 2
      else:
          raise RuntimeError(
              "Unable to call get on the given url route"
          )
  
      return response
  
file_path: responsible-ai-toolbox/rai_core_flask/tests/test_flask_helper.py
imports: import time
  import requests
  from requests.adapters import HTTPAdapter
  from requests.packages.urllib3.util.retry import Retry
  from rai_core_flask import FlaskHelper
label_desc: Use image node_id 1 for calling a global function with example usage: call_get_with_retries(http_client, url_route, max_retries, retry_delay) and returns: response