code: def test_str_issue(msg):
      """Issue #283: __str__ called on uninitialized instance when constructor arguments invalid"""
      from pybind11_tests.issues import StrIssue
  
      assert str(StrIssue(3)) == "StrIssue[3]"
  
      with pytest.raises(TypeError) as excinfo:
          str(StrIssue("no", "such", "constructor"))
      assert (
          msg(excinfo.value)
          == """
          __init__(): incompatible constructor arguments. The following argument types are supported:
              1. m.issues.StrIssue(arg0: int)
              2. m.issues.StrIssue()
  
          Invoked with: 'no', 'such', 'constructor'
      """
      )
  
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 7 for calling a global function with example usage: test_str_issue(msg) without return types