code: def test_constructors():
      from pybind11_tests.array import (
          default_constructors,
          converting_constructors,
      )
  
      defaults = default_constructors()
      for a in defaults.values():
          assert a.size == 0
      assert defaults["array"].dtype == np.array([]).dtype
      assert defaults["array_t<int32>"].dtype == np.int32
      assert defaults["array_t<double>"].dtype == np.float64
  
      results = converting_constructors([1, 2, 3])
      for a in results.values():
          np.testing.assert_array_equal(a, [1, 2, 3])
      assert results["array"].dtype == np.int_
      assert results["array_t<int32>"].dtype == np.int32
      assert results["array_t<double>"].dtype == np.float64
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_array.py
imports: import pytest
label_desc: Use image node_id 16 for calling a global function with example usage: test_constructors() without return types