code: def test_char_underlying_enum():  # Issue #1331/PR #1334:
      assert type(m.ScopedCharEnum.Positive.__int__()) is int
      assert int(m.ScopedChar16Enum.Zero) == 0
      assert hash(m.ScopedChar32Enum.Positive) == 1
      assert type(m.ScopedCharEnum.Positive.__getstate__()) is int
      assert m.ScopedWCharEnum(1) == m.ScopedWCharEnum.Positive
      with pytest.raises(TypeError):
          # Even if the underlying type is char, only an int can be used to construct the enum:
          m.ScopedCharEnum("0")
  
file_path: coremltools/deps/pybind11/tests/test_enum.py
imports: import pytest
  from pybind11_tests import enums
label_desc: Use image node_id 7 for calling a global function with example usage: test_char_underlying_enum() without return types