code: def test_at_fail(arr, dim):
      for func in m.at_t, m.mutate_at_t:
          with pytest.raises(IndexError) as excinfo:
              func(arr, *([0] * dim))
          assert (
              str(excinfo.value)
              == f"index dimension mismatch: {dim} (ndim = 2)"
          )
  
imports: import pytest
  import env
  from pybind11_tests import numpy_array
label_desc: Use image node_id 7 for calling a global function with example usage: test_at_fail(arr, dim) without return types