code: def test_dispatch_issue(msg):
      """#159: virtual function dispatch has problems with similar-named functions"""
      from pybind11_tests.issues import DispatchIssue, dispatch_issue_go
  
      class PyClass1(DispatchIssue):
          def dispatch(self):
              return "Yay.."
  
      class PyClass2(DispatchIssue):
          def dispatch(self):
              with pytest.raises(RuntimeError) as excinfo:
                  super(PyClass2, self).dispatch()
              assert (
                  msg(excinfo.value)
                  == 'Tried to call pure virtual function "Base::dispatch"'
              )
  
              p = PyClass1()
              return dispatch_issue_go(p)
  
      b = PyClass2()
      assert dispatch_issue_go(b) == "Yay.."
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_issues.py
imports: import pytest
  from pybind11_tests import ConstructorStats
label_desc: Use image node_id 2 for calling a global function with example usage: test_dispatch_issue(msg) and returns: str, dispatch_issue_go