code: def test_segfault_stack_trace(ray_start_cluster, capsys):
      @ray.remote
      def f():
          import ctypes
  
          ctypes.string_at(0)
  
      with pytest.raises(
          ray.exceptions.WorkerCrashedError,
          match="The worker died unexpectedly",
      ):
          ray.get(f.remote())
  
      stderr = capsys.readouterr().err
      assert (
          "*** SIGSEGV received at" in stderr
      ), f"C++ stack trace not found in stderr: {stderr}"
      assert (
          "Fatal Python error: Segmentation fault" in stderr
      ), f"Python stack trace not found in stderr: {stderr}"
  
imports: import io
  import os
  import re
  import subprocess
  import sys
  import tempfile
  import time
  import logging
  from collections import Counter, defaultdict
  from contextlib import redirect_stderr, redirect_stdout
  from pathlib import Path
  from unittest.mock import Mock, MagicMock
  import pytest
  import ray
  from ray._private import ray_constants
  from ray._private.log_monitor import LOG_NAME_UPDATE_INTERVAL_S, RAY_LOG_MONITOR_MANY_FILES_THRESHOLD, LogFileInfo, LogMonitor, is_proc_alive
  from ray._private.test_utils import get_log_batch, get_log_message, get_log_data, init_log_pubsub, run_string_as_driver, wait_for_condition
  from ray.cross_language import java_actor_class
  from ray.autoscaler._private.cli_logger import cli_logger
label_desc: Use image node_id 12 for calling a global function with example usage: test_segfault_stack_trace(ray_start_cluster, capsys) without return types