code: def test_disallow_flat_indexing_with_newaxis():
      a = ones((3, 3, 3))
      with pytest.raises(IndexError):
          a[None, 0, 0]
  
file_path: cupy/tests/cupy_tests/array_api_tests/test_array_object.py
imports: import operator
  from numpy.testing import assert_raises
  import cupy
  import pytest
  from cupy.array_api import ones, asarray, reshape, result_type, all, equal
  from cupy.array_api._dtypes import _all_dtypes, _boolean_dtypes, _floating_dtypes, _integer_dtypes, _integer_or_boolean_dtypes, _numeric_dtypes, int8, int16, int32, int64, uint64, bool
  from cupy.array_api._array_object import Array
label_desc: Use image node_id 7 for calling a global function with example usage: test_disallow_flat_indexing_with_newaxis() without return types