code: def test_python_override():
      def func():
          class Test(m.test_override_cache_helper):
              def func(self):
                  return 42
  
          return Test()
  
      def func2():
          class Test(m.test_override_cache_helper):
              pass
  
          return Test()
  
      for _ in range(1500):
          assert m.test_override_cache(func()) == 42
          assert m.test_override_cache(func2()) == 0
  
file_path: coremltools/deps/pybind11/tests/test_virtual_functions.py
imports: import pytest
  import env
  from pybind11_tests import ConstructorStats
label_desc: Use image node_id 10 for calling a global function with example usage: test_python_override() and returns: Test, Test, int