code: def test_exit_logging():
      log = run_string_as_driver(
          """
  import ray
  
  @ray.remote
  class A:
      def pid(self):
          import os
          return os.getpid()
  
  
  a = A.remote()
  ray.get(a.pid.remote())
      """
      )
      assert "Traceback" not in log
  
imports: import gc
  import logging
  import os
  import sys
  import time
  import subprocess
  from unittest.mock import Mock, patch
  import unittest
  import pytest
  import ray
  import ray.cluster_utils
  from ray._private.test_utils import run_string_as_driver, wait_for_pid_to_exit, client_test_enabled
  from ray._private.resource_spec import HEAD_NODE_RESOURCE_NAME
label_desc: Use image node_id 4 for calling a global function with example usage: test_exit_logging() without return types