code: def test_bounds_check(arr):
      from pybind11_tests.array import (
          index_at,
          index_at_t,
          data,
          data_t,
          mutate_data,
          mutate_data_t,
          at_t,
          mutate_at_t,
      )
  
      funcs = (
          index_at,
          index_at_t,
          data,
          data_t,
          mutate_data,
          mutate_data_t,
          at_t,
          mutate_at_t,
      )
      for func in funcs:
          with pytest.raises(IndexError) as excinfo:
              func(arr, 2, 0)
          assert (
              str(excinfo.value)
              == "index 2 is out of bounds for axis 0 with size 2"
          )
          with pytest.raises(IndexError) as excinfo:
              func(arr, 0, 4)
          assert (
              str(excinfo.value)
              == "index 4 is out of bounds for axis 1 with size 3"
          )
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/deps/pybind11/tests/test_numpy_array.py
imports: import pytest
label_desc: Use image node_id 10 for calling a global function with example usage: test_bounds_check(arr) without return types