code: def _savez(
      file, args, kwds, compress, allow_pickle=True, pickle_kwargs=None
  ):
      # Import is postponed to here since zipfile depends on gzip, an optional
      # component of the so-called standard library.
      import zipfile
  
      if not hasattr(file, "write"):
          file = os.fspath(file)
          if not file.endswith(".npz"):
              file = file + ".npz"
  
      namedict = kwds
      for i, val in enumerate(args):
          key = "arr_%d" % i
          if key in namedict.keys():
              raise ValueError(
                  "Cannot use un-named variables and keyword %s" % key
              )
          namedict[key] = val
  
      if compress:
          compression = zipfile.ZIP_DEFLATED
      else:
          compression = zipfile.ZIP_STORED
  
      zipf = zipfile_factory(file, mode="w", compression=compression)
  
      for key, val in namedict.items():
          fname = key + ".npy"
          val = np.asanyarray(val)
          # always force zip64, gh-10776
          with zipf.open(fname, "w", force_zip64=True) as fid:
              format.write_array(
                  fid,
                  val,
                  allow_pickle=allow_pickle,
                  pickle_kwargs=pickle_kwargs,
              )
  
      zipf.close()
  
imports: import os
  import re
  import functools
  import itertools
  import warnings
  import weakref
  import contextlib
  import operator
  from operator import itemgetter, index, methodcaller
  from collections.abc import Mapping
  import pickle
  import numpy
  from .None import format
  from ._datasource import DataSource
  from numpy._core import overrides
  from numpy._core.multiarray import packbits, unpackbits
  from numpy._core._multiarray_umath import _load_from_filelike
  from numpy._core.overrides import set_array_function_like_doc, set_module
  from ._iotools import LineSplitter, NameValidator, StringConverter, ConverterError, ConverterLockError, ConversionWarning, _is_string_like, has_nested_fields, flatten_dtype, easy_dtype, _decode_line
  from numpy._utils import asunicode, asbytes
label_desc: Use image node_id 9 for calling a global function with example usage: _savez(file, args, kwds, compress, allow_pickle, pickle_kwargs) without return types