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: Download the file specified by the given URL.
  
  Args:
      url (str): Base URL of the file to be downloaded.
      sourcefile (str): Name of the source file.
      destfile (str): Path to the destination.
      totalsz (int): Size of the file to be downloaded.
docstr_tok: ["Download","the","file","specified","by","the","given","URL",".","Args",":","url","(","str",")",":","Base","URL","of","the","file","to","be","downloaded",".","sourcefile","(","str",")",":","Name","of","the","source","file",".","destfile","(","str",")",":","Path","to","the","destination",".","totalsz","(","int",")",":","Size","of","the","file","to","be","downloaded","."]
code: def fetch_dataset(url, sourcefile, destfile, totalsz):
      """
      Download the file specified by the given URL.
  
      Args:
          url (str): Base URL of the file to be downloaded.
          sourcefile (str): Name of the source file.
          destfile (str): Path to the destination.
          totalsz (int): Size of the file to be downloaded.
      """
      req = Request(
          os.path.join(url, sourcefile), headers={"User-Agent": "neon"}
      )
      # backport https limitation and workaround per http://python-future.org/imports.html
      cloudfile = urlopen(req)
      neon_logger.display("Downloading file: {}".format(destfile))
      blockchar = "\u2588"  # character to display in progress bar
      with open(destfile, "wb") as f:
          data_read = 0
          chunksz = 1024**2
          while 1:
              data = cloudfile.read(chunksz)
              if not data:
                  break
              data_read = min(totalsz, data_read + chunksz)
              progress_string = "Download Progress |{:<50}| ".format(
                  blockchar * int(float(data_read) / totalsz * 50)
              )
              sys.stdout.write("\r")
              if PY3:
                  sys.stdout.write(progress_string)
              else:
                  sys.stdout.write(progress_string.encode("utf-8"))
              sys.stdout.flush()
  
              f.write(data)
          neon_logger.display("Download Complete")
  
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 5 for calling the Dataset obj's underlying member method code with example usage: obj.fetch_dataset(url, sourcefile, destfile, totalsz) without return types