code: def test_large_archive(tmpdir):
      # Regression test for product of saving arrays with dimensions of array
      # having a product that doesn't fit in int32.  See gh-7598 for details.
      shape = (2**30, 2)
      try:
          a = np.empty(shape, dtype=np.uint8)
      except MemoryError:
          pytest.skip("Could not create large file")
  
      fname = os.path.join(tmpdir, "large_archive")
  
      with open(fname, "wb") as f:
          np.savez(f, arr=a)
  
      del a
  
      with open(fname, "rb") as f:
          new_a = np.load(f)["arr"]
  
      assert new_a.shape == shape
  
imports: import sys
  import os
  import warnings
  import pytest
  from io import BytesIO
  import numpy
  from numpy.testing import assert_, assert_array_equal, assert_raises, assert_raises_regex, assert_warns, IS_PYPY, IS_WASM
  from numpy.testing._private.utils import requires_memory
  from numpy.lib import format
  import yatest.common
label_desc: Use image node_id 30 for calling a global function with example usage: test_large_archive(tmpdir) without return types