code: def test_not_logging_to_driver(shutdown_only):
      ray.init(num_cpus=1, log_to_driver=False)
  
      @ray.remote
      def f():
          for i in range(100):
              print(i)
              print(100 + i, file=sys.stderr)
              sys.stdout.flush()
              sys.stderr.flush()
  
      captured = {}
      with CaptureOutputAndError(captured):
          ray.get(f.remote())
          time.sleep(1)
  
      output_lines = captured["out"]
      assert len(output_lines) == 0
  
      err_lines = captured["err"]
      assert len(err_lines) == 0
  
imports: import logging
  import os
  import pickle
  import socket
  import sys
  import time
  import numpy
  import pytest
  import ray
  import ray._private.utils
  import ray.cluster_utils
  import ray.util.accelerators
  from ray._private.test_utils import check_call_ray, wait_for_num_actors
  import setproctitle
label_desc: Use image node_id 3 for calling a global function with example usage: test_not_logging_to_driver(shutdown_only) without return types