code: def test_confs(conf):
      counter = Counter()
      with erroneous_runner(DUMMY_RUN) as run:
          with counting_runner(run, counter) as run:
  
              def foo():
                  run()
  
      retry.retry_call(foo, conf=conf)
      assert counter.value == 2
  
      counter = Counter()
      with erroneous_runner(DUMMY_RUN) as run:
          with counting_runner(run, counter) as run:
  
              @retry.retry(conf)
              def foo_retried():
                  run()
  
      foo_retried()
      assert counter.value == 2
  
imports: import contextlib
  import datetime
  import pytest
  import library.python.retry
label_desc: Use image node_id 15 for calling a global function with example usage: test_confs(conf) without return types