code: def test_exec():
      ctx = {"run": False}
  
      @retry.retry()
      def foo():
          ctx["run"] = True
  
      foo()
  
      assert ctx["run"]
  
imports: import contextlib
  import datetime
  import pytest
  import library.python.retry
label_desc: Use image node_id 2 for calling a global function with example usage: test_exec() without return types