class_docstr: Container class for stock datasets.
  
  Arguments:
      filename (str/list): name of the file to download
      url (str): url for dataset
      size (int/list): file size
      path (str): local path to place files
      subset_pct (float/int): percentage of data set to use for training
class_docstr_tok: ["Container","class","for","stock","datasets",".","Arguments",":","filename","(","str\/list",")",":","name","of","the","file","to","download","url","(","str",")",":","url","for","dataset","size","(","int\/list",")",":","file","size","path","(","str",")",":","local","path","to","place","files","subset_pct","(","float\/int",")",":","percentage","of","data","set","to","use","for","training"]
docstr: Helper function for downloading test files
  Will download and unzip the file into the directory self.path
  
  Arguments:
      filename (str): name of file to download from self.url
      size (str): size of the file in bytes?
  
  Returns:
      str: Path to the downloaded dataset.
docstr_tok: ["Helper","function","for","downloading","test","files","Will","download","and","unzip","the","file","into","the","directory","self.path","Arguments",":","filename","(","str",")",":","name","of","file","to","download","from","self.url","size","(","str",")",":","size","of","the","file","in","bytes","?","Returns",":","str",":","Path","to","the","downloaded","dataset","."]
code: def load_zip(self, filename, size):
      """
      Helper function for downloading test files
      Will download and unzip the file into the directory self.path
  
      Arguments:
          filename (str): name of file to download from self.url
          size (str): size of the file in bytes?
  
      Returns:
          str: Path to the downloaded dataset.
      """
      workdir, filepath = self._valid_path_append(
          self.path, "", filename
      )
  
      if not os.path.exists(filepath):
          self.fetch_dataset(self.url, filename, filepath, size)
      if ".zip" in filepath:
          zip_ref = zipfile.ZipFile(filepath)
          zip_ref.extractall(workdir)
          zip_ref.close()
          filepath = filepath.split(".zip")[0]
      return filepath
  
imports: from __future__ import division
  from future import standard_library
  from future.moves.urllib.request import Request, urlopen
  import logging
  import os
  import sys
  import zipfile
  from neon import NervanaObject, logger
  from neon.util.compat import PY3
label_desc: Use image node_id 3 for calling the Dataset obj's underlying member method code with example usage: obj.load_zip(filename, size) and returns: filepath