code: def test_error_on_invalid_index_with_ellipsis(i):
      a = ones((3, 3, 3))
      with pytest.raises(IndexError):
          a[..., i]
      with pytest.raises(IndexError):
          a[i, ...]
  
file_path: catboost/contrib/python/numpy/py3/numpy/array_api/tests/test_array_object.py
imports: import operator
  from numpy.testing import assert_raises, suppress_warnings
  import numpy
  import pytest
  from numpy.array_api import ones, asarray, reshape, result_type, all, equal
  from numpy.array_api._array_object import Array
  from numpy.array_api._dtypes import _all_dtypes, _boolean_dtypes, _real_floating_dtypes, _floating_dtypes, _complex_floating_dtypes, _integer_dtypes, _integer_or_boolean_dtypes, _real_numeric_dtypes, _numeric_dtypes, int8, int16, int32, int64, uint64, bool
label_desc: Use image node_id 12 for calling a global function with example usage: test_error_on_invalid_index_with_ellipsis(i) without return types