code: def test_exit_only(is_async, shutdown_only):
      """
      Sanity testing: only do exit-retry works
      """
      actor_class = AsyncTroubleMaker if is_async else TroubleMaker
      counter = Counter.remote()
      trouble_maker = actor_class.options(max_restarts=2).remote()
      with pytest.raises(ray.exceptions.RayActorError):
          ret = ray.get(
              trouble_maker.raise_or_exit.options(
                  _max_retries=2
              ).remote(counter, ["exit", "exit", "exit"])
          )
          print(f"should not print: ret = {ret}")
      # 3 = 1 initial + 2 retries (with the 2 restarts included)
      assert ray.get(counter.get_count.remote()) == 3
  
imports: import os
  import sys
  import pytest
  import ray
label_desc: Use image node_id 12 for calling a global function with example usage: test_exit_only(is_async, shutdown_only) without return types