code: def test_enum_array():
      from pybind11_tests import create_enum_array, print_enum_array
  
      arr = create_enum_array(3)
      dtype = arr.dtype
      assert dtype == np.dtype([("e1", "<i8"), ("e2", "u1")])
      assert print_enum_array(arr) == [
          "e1=A,e2=X",
          "e1=B,e2=Y",
          "e1=A,e2=X",
      ]
      assert arr["e1"].tolist() == [-1, 1, -1]
      assert arr["e2"].tolist() == [1, 2, 1]
      assert create_enum_array(0).dtype == dtype
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_dtypes.py
imports: import re
  import pytest
label_desc: Use image node_id 15 for calling a global function with example usage: test_enum_array() without return types