code: def test_duplicate_enum_name():
      with pytest.raises(ValueError) as excinfo:
          m.register_bad_enum()
      assert (
          str(excinfo.value)
          == 'SimpleEnum: element "ONE" already exists!'
      )
  
file_path: coremltools/deps/pybind11/tests/test_enum.py
imports: import pytest
  from pybind11_tests import enums
label_desc: Use image node_id 6 for calling a global function with example usage: test_duplicate_enum_name() without return types