code: def test_large_file_support(tmpdir):
      if sys.platform == "win32" or sys.platform == "cygwin":
          pytest.skip("Unknown if Windows has sparse filesystems")
      # try creating a large sparse file
      tf_name = os.path.join(tmpdir, "sparse_file")
      try:
          # seek past end would work too, but linux truncate somewhat
          # increases the chances that we have a sparse filesystem and can
          # avoid actually writing 5GB
          import subprocess as sp
  
          sp.check_call(["truncate", "-s", "5368709120", tf_name])
      except Exception:
          pytest.skip("Could not create 5GB large file")
      # write a small array to the end
      with open(tf_name, "wb") as f:
          f.seek(5368709120)
          d = np.arange(5)
          np.save(f, d)
      # read it back
      with open(tf_name, "rb") as f:
          f.seek(5368709120)
          r = np.load(f)
      assert_array_equal(r, d)
  
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 29 for calling a global function with example usage: test_large_file_support(tmpdir) without return types