code: def test_method_no_retry_without_retry_exceptions(shutdown_only):
      counter = Counter.remote()
      trouble_maker = TroubleMaker.remote()
      with pytest.raises(MyError):
          ray.get(
              trouble_maker.may_raise_n_times.options(
                  retry_exceptions=False
              ).remote(counter, 5)
          )
      assert ray.get(counter.get_count.remote()) == 1
  
imports: import os
  import sys
  import pytest
  import ray
label_desc: Use image node_id 3 for calling a global function with example usage: test_method_no_retry_without_retry_exceptions(shutdown_only) without return types