docstr: Test the error paths, including for memory leaks
code: def test_too_large_array_error_paths(self):
      """Test the error paths, including for memory leaks"""
      arr = np.array(0, dtype="uint8")
      # Guarantees that a contiguous copy won't work:
      arr = np.broadcast_to(arr, 2**62)
  
      for i in range(5):
          # repeat, to ensure caching cannot have an effect:
          with pytest.raises(MemoryError):
              np.array(arr)
          with pytest.raises(MemoryError):
              np.array([arr])
  
imports: from itertools import permutations, product
  import pytest
  from pytest import param
  import numpy
  import numpy._core._multiarray_umath
  from numpy._core._rational_tests import rational
  from numpy.testing import assert_array_equal, assert_warns, IS_PYPY
label_desc: Use image node_id 5 for calling the TestArrayLikes obj's underlying member method code with example usage: obj.test_too_large_array_error_paths() without return types