code: def get_infeasible_queued(ray_ctx):
      resources_batch = get_resource_usage(
          gcs_address=ray_ctx.address_info["gcs_address"]
      )
  
      infeasible_queued = (
          resources_batch.resource_load_by_shape.resource_demands[
              0
          ].num_infeasible_requests_queued
          if len(
              resources_batch.resource_load_by_shape.resource_demands
          )
          > 0
          and hasattr(
              resources_batch.resource_load_by_shape.resource_demands[
                  0
              ],
              "num_infeasible_requests_queued",
          )
          else 0
      )
  
      return infeasible_queued
  
file_path: ray/python/ray/tests/test_node_manager.py
imports: import ray
  from ray.util.state import list_workers
  from ray._private.test_utils import get_load_metrics_report, run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition, get_resource_usage
  import pytest
  import os
  from ray.util.state import list_objects
  import subprocess
  from ray._private.utils import get_num_cpus
  import time
  import sys
label_desc: Use image node_id 3 for calling a global function with example usage: get_infeasible_queued(ray_ctx) and returns: infeasible_queued