code: def test_at_fail(arr, dim):
      from pybind11_tests.array import at_t, mutate_at_t
  
      for func in at_t, mutate_at_t:
          with pytest.raises(IndexError) as excinfo:
              func(arr, *([0] * dim))
          assert str(
              excinfo.value
          ) == "index dimension mismatch: {} (ndim = 2)".format(dim)
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_array.py
imports: import pytest
label_desc: Use image node_id 7 for calling a global function with example usage: test_at_fail(arr, dim) without return types