code: def check_infeasible(expect_infeasible, ray_ctx) -> bool:
      infeasible_queued = get_infeasible_queued(ray_ctx)
      if expect_infeasible:
          return infeasible_queued > 0
      else:
          return infeasible_queued == 0
  
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 4 for calling a global function with example usage: check_infeasible(expect_infeasible, ray_ctx) and returns: unknown, unknown