code: def test_array_collapse():
      assert not isinstance(m.vectorized_func(1, 2, 3), np.ndarray)
      assert not isinstance(
          m.vectorized_func(np.array(1), 2, 3), np.ndarray
      )
      z = m.vectorized_func([1], 2, 3)
      assert isinstance(z, np.ndarray)
      assert z.shape == (1,)
      z = m.vectorized_func(1, [[[2]]], 3)
      assert isinstance(z, np.ndarray)
      assert z.shape == (1, 1, 1)
  
file_path: coremltools/deps/pybind11/tests/test_numpy_vectorize.py
imports: import pytest
  from pybind11_tests import numpy_vectorize
label_desc: Use image node_id 7 for calling a global function with example usage: test_array_collapse() without return types