class_docstr: NpzFile(fid)
  
  A dictionary-like object with lazy-loading of files in the zipped
  archive provided on construction.
  
  `NpzFile` is used to load files in the NumPy ``.npz`` data archive
  format. It assumes that files in the archive have a ``.npy`` extension,
  other files are ignored.
  
  The arrays and file strings are lazily loaded on either
  getitem access using ``obj['key']`` or attribute lookup using
  ``obj.f.key``. A list of all files (without ``.npy`` extensions) can
  be obtained with ``obj.files`` and the ZipFile object itself using
  ``obj.zip``.
  
  Attributes
  ----------
  files : list of str
      List of all files in the archive with a ``.npy`` extension.
  zip : ZipFile instance
      The ZipFile object initialized with the zipped archive.
  f : BagObj instance
      An object on which attribute can be performed as an alternative
      to getitem access on the `NpzFile` instance itself.
  allow_pickle : bool, optional
      Allow loading pickled data. Default: False
  
      .. versionchanged:: 1.16.3
          Made default False in response to CVE-2019-6446.
  
  pickle_kwargs : dict, optional
      Additional keyword arguments to pass on to pickle.load.
      These are only useful when loading object arrays saved on
      Python 2 when using Python 3.
  
  Parameters
  ----------
  fid : file or str
      The zipped archive to open. This is either a file-like object
      or a string containing the path to the archive.
  own_fid : bool, optional
      Whether NpzFile should close the file handle.
      Requires that `fid` is a file-like object.
  
  Examples
  --------
  >>> from tempfile import TemporaryFile
  >>> outfile = TemporaryFile()
  >>> x = np.arange(10)
  >>> y = np.sin(x)
  >>> np.savez(outfile, x=x, y=y)
  >>> outfile.seek(0)
  
  >>> npz = np.load(outfile)
  >>> isinstance(npz, np.lib.io.NpzFile)
  True
  >>> npz.files
  ['y', 'x']
  >>> npz['x']  # getitem access
  array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
  >>> npz.f.x  # attribute lookup
  array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
class_docstr_tok: ["NpzFile","(","fid",")","A","dictionary-like","object","with","lazy-loading","of","files","in","the","zipped","archive","provided","on","construction",".","`","NpzFile","`","is","used","to","load","files","in","the","NumPy","``",".npz","``","data","archive","format",".","It","assumes","that","files","in","the","archive","have","a","``",".npy","``","extension",",","other","files","are","ignored",".","The","arrays","and","file","strings","are","lazily","loaded","on","either","getitem","access","using","``","obj","[","'key","'","]","``","or","attribute","lookup","using","``","obj.f.key","``",".","A","list","of","all","files","(","without","``",".npy","``","extensions",")","can","be","obtained","with","``","obj.files","``","and","the","ZipFile","object","itself","using","``","obj.zip","``",".","Attributes","--","--","--","--","--","files",":","list","of","str","List","of","all","files","in","the","archive","with","a","``",".npy","``","extension",".","zip",":","ZipFile","instance","The","ZipFile","object","initialized","with","the","zipped","archive",".","f",":","BagObj","instance","An","object","on","which","attribute","can","be","performed","as","an","alternative","to","getitem","access","on","the","`","NpzFile","`","instance","itself",".","allow_pickle",":","bool",",","optional","Allow","loading","pickled","data",".","Default",":","False","..","versionchanged",":",":","1.16.3","Made","default","False","in","response","to","CVE-2019-6446",".","pickle_kwargs",":","dict",",","optional","Additional","keyword","arguments","to","pass","on","to","pickle.load",".","These","are","only","useful","when","loading","object","arrays","saved","on","Python","2","when","using","Python","3",".","Parameters","--","--","--","--","--","fid",":","file","or","str","The","zipped","archive","to","open",".","This","is","either","a","file-like","object","or","a","string","containing","the","path","to","the","archive",".","own_fid",":","bool",",","optional","Whether","NpzFile","should","close","the","file","handle",".","Requires","that","`","fid","`","is","a","file-like","object",".","Examples","--","--","--","--",">",">",">","from","tempfile","import","TemporaryFile",">",">",">","outfile","=","TemporaryFile","(",")",">",">",">","x","=","np.arange","(","10",")",">",">",">","y","=","np.sin","(","x",")",">",">",">","np.savez","(","outfile",",","x=x",",","y=y",")",">",">",">","outfile.seek","(","0",")",">",">",">","npz","=","np.load","(","outfile",")",">",">",">","isinstance","(","npz",",","np.lib.io.NpzFile",")","True",">",">",">","npz.files","[","'","y","'",",","'","x","'","]",">",">",">","npz","[","'","x","'","]","#","getitem","access","array","(","[","0",",","1",",","2",",","3",",","4",",","5",",","6",",","7",",","8",",","9","]",")",">",">",">","npz.f.x","#","attribute","lookup","array","(","[","0",",","1",",","2",",","3",",","4",",","5",",","6",",","7",",","8",",","9","]",")"]
code: def __iter__(self):
      return iter(self.files)
  
imports: from __future__ import division, absolute_import, print_function
  import sys
  import os
  import re
  import functools
  import itertools
  import warnings
  import weakref
  from operator import itemgetter, index
  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.overrides import set_module
  from numpy.core._internal import recursive
  from ._iotools import LineSplitter, NameValidator, StringConverter, ConverterError, ConverterLockError, ConversionWarning, _is_string_like, has_nested_fields, flatten_dtype, easy_dtype, _decode_line
  from numpy.compat import asbytes, asstr, asunicode, asbytes_nested, bytes, basestring, unicode, os_fspath, os_PathLike
  from numpy.core.numeric import pickle
label_desc: Use image node_id 6 for calling the NpzFile obj's underlying member method code with example usage: obj.__iter__() and returns: iter