code: def counting_runner(run, counter):
      def wrapped_run(*args, **kwargs):
          counter.checkin()
          return run(*args, **kwargs)
  
      yield wrapped_run
  
imports: import contextlib
  import datetime
  import pytest
  import library.python.retry
label_desc: Use image node_id 6 for calling a global function with example usage: counting_runner(run, counter) and returns: run