code: def test_upto():
      conf = retry.RetryConf().upto(0)
  
      counter = Counter()
      with erroneous_runner(DUMMY_RUN) as run:
          with counting_runner(run, counter) as run:
  
              @retry.retry(conf)
              def foo():
                  run()
  
      with pytest.raises(Exception):
          foo()
      assert counter.value == 1
  
imports: import contextlib
  import datetime
  import pytest
  import library.python.retry
label_desc: Use image node_id 20 for calling a global function with example usage: test_upto() without return types