code: def get_api_load_balancer_state():
      cluster_name = os.environ["CORTEX_CLUSTER_NAME"]
      region = os.environ["CORTEX_REGION"]
      load_balancer_type = os.environ["CORTEX_API_LOAD_BALANCER_TYPE"]
  
      if load_balancer_type == "nlb":
          client_elbv2 = boto3.client("elbv2", region_name=region)
          load_balancer = get_api_load_balancer_v2(
              cluster_name, client_elbv2
          )
          return load_balancer["State"]["Code"]
      else:
          client_elb = boto3.client("elb", region_name=region)
          load_balancer = get_api_load_balancer(
              cluster_name, client_elb
          )
          return get_api_load_balancer_health(
              load_balancer["LoadBalancerName"], client_elb
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: get_api_load_balancer_state() and returns: load_balancer, get_api_load_balancer_health