code: def test_retries_decorator_method_args(runs):
      counter = Counter()
      with erroneous_runner(DUMMY_RUN, runs) as run:
          with counting_runner(run, counter) as run:
  
              class Bar(object):
                  @retry.retry(retry.RetryConf())
                  def foo(self, arg, kwarg=None):
                      run()
  
      Bar().foo(1, kwarg=2)
      assert counter.value == runs + 1
  
imports: import contextlib
  import datetime
  import pytest
  import library.python.retry
label_desc: Use image node_id 12 for calling a global function with example usage: test_retries_decorator_method_args(runs) without return types