code: def inject_cpp_tests(ns):
      """
      Inject C++ tests as Python functions into namespace `ns` (a dict).
      """
      for case in get_cpp_tests():
  
          def wrapper(case=case):
              case()
  
          wrapper.__name__ = wrapper.__qualname__ = case.name
          wrapper.__module__ = ns["__name__"]
          ns[case.name] = wrapper
  
imports: import os.path
  from os.path import join
  from pyarrow._pyarrow_cpp_tests import get_cpp_tests
label_desc: Use image node_id 1 for calling a global function with example usage: inject_cpp_tests(ns) without return types