code: def test_large_fancy_indexing(self):
      # Large enough to fail on 64-bit.
      nbits = np.dtype(np.intp).itemsize * 8
      thesize = int((2**nbits) ** (1.0 / 5.0) + 1)
  
      def dp():
          n = 3
          a = np.ones((n,) * 5)
          i = np.random.randint(0, n, size=thesize)
          a[np.ix_(i, i, i, i, i)] = 0
  
      def dp2():
          n = 3
          a = np.ones((n,) * 5)
          i = np.random.randint(0, n, size=thesize)
          a[np.ix_(i, i, i, i, i)]
  
      assert_raises(ValueError, dp)
      assert_raises(ValueError, dp2)
  
imports: import os
  import numpy
  from numpy.testing import assert_, assert_equal, assert_array_equal, assert_array_almost_equal, assert_raises, _assert_valid_refcount
  import pytest
label_desc: Use image node_id 18 for calling the TestRegression obj's underlying member method code with example usage: obj.test_large_fancy_indexing() without return types