code: def test_logger_config_with_ray_init():
      """Test that the logger is correctly configured when ray.init is called."""
  
      script = """
  import ray
  
  ray.init(num_cpus=1)
      """
  
      out_str = run_string_as_driver(script)
      assert "INFO" in out_str, out_str
      assert len(out_str) != 0
  
imports: import os
  import re
  import signal
  import subprocess
  import sys
  import time
  import pytest
  import ray
  from ray._private.test_utils import run_string_as_driver, run_string_as_driver_nonblocking, wait_for_condition
label_desc: Use image node_id 3 for calling a global function with example usage: test_logger_config_with_ray_init() without return types