code: def test_node_name_in_raylet_death():
      NODE_NAME = "RAY_TEST_RAYLET_DEATH_NODE_NAME"
      script = f"""
  import time
  import os
  
  WAIT_BUFFER_SECONDS=5
  
  os.environ["RAY_pull_based_healthcheck"]="true"
  os.environ["RAY_health_check_initial_delay_ms"]="0"
  os.environ["RAY_health_check_period_ms"]="1000"
  os.environ["RAY_health_check_timeout_ms"]="10"
  os.environ["RAY_health_check_failure_threshold"]="2"
  sleep_time = float(os.environ["RAY_health_check_period_ms"]) / 1000.0 * \
      int(os.environ["RAY_health_check_failure_threshold"])
  sleep_time += WAIT_BUFFER_SECONDS
  
  import ray
  
  ray.init(_node_name=\"{NODE_NAME}\")
  # This will kill raylet without letting it exit gracefully.
  ray._private.worker._global_node.kill_raylet()
  
  time.sleep(sleep_time)
  ray.shutdown()
      """
      out = run_string_as_driver(script)
      print(out)
      assert (
          out.count(f"node name: {NODE_NAME} has been marked dead") == 1
      )
  
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 25 for calling a global function with example usage: test_node_name_in_raylet_death() without return types