code: def redirect_relative():
      conn = h2o.connection()
  
      # get default requests arguments
      req_args = conn._request_args()
      headers = req_args["headers"]
      headers["User-Agent"] = "Mozilla/pyunit"
  
      # invalidate authentication
      req_args["auth"] = None
      req_args["headers"] = headers
  
      response_flow = requests.request(
          "GET",
          conn._base_url + "/flow/index.html",
          allow_redirects=False,
          **req_args,
      )
      print(response_flow)
      assert response_flow.status_code in [302, 303]
      assert response_flow.headers["location"].startswith("/login")
  
imports: import sys
  import os
  import h2o
  from tests import pyunit_utils
  import requests
label_desc: Use image node_id 1 for calling a global function with example usage: redirect_relative() without return types