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 to validate passed path directory and append any subsequent
  filename arguments.
  
  Arguments:
      path (str): Initial filesystem path.  Should expand to a valid
                  directory.
      *args (list, optional): Any filename or path suffices to append to path
                              for returning.
  
      Returns:
          (list, str): path prepended list of files from args, or path alone if
                   no args specified.
  
  Raises:
      ValueError: if path is not a valid directory on this filesystem.
docstr_tok: ["Helper","to","validate","passed","path","directory","and","append","any","subsequent","filename","arguments",".","Arguments",":","path","(","str",")",":","Initial","filesystem","path",".","Should","expand","to","a","valid","directory",".","*","args","(","list",",","optional",")",":","Any","filename","or","path","suffices","to","append","to","path","for","returning",".","Returns",":","(","list",",","str",")",":","path","prepended","list","of","files","from","args",",","or","path","alone","if","no","args","specified",".","Raises",":","ValueError",":","if","path","is","not","a","valid","directory","on","this","filesystem","."]
code: def _valid_path_append(path, *args):
      """
      Helper to validate passed path directory and append any subsequent
      filename arguments.
  
      Arguments:
          path (str): Initial filesystem path.  Should expand to a valid
                      directory.
          *args (list, optional): Any filename or path suffices to append to path
                                  for returning.
  
          Returns:
              (list, str): path prepended list of files from args, or path alone if
                       no args specified.
  
      Raises:
          ValueError: if path is not a valid directory on this filesystem.
      """
      full_path = os.path.expanduser(path)
      res = []
      if not os.path.exists(full_path):
          os.makedirs(full_path)
      if not os.path.isdir(full_path):
          raise ValueError(
              "path: {0} is not a valid directory".format(path)
          )
      for suffix_path in args:
          res.append(os.path.join(full_path, suffix_path))
      if len(res) == 0:
          return path
      elif len(res) == 1:
          return res[0]
      else:
          return res
  
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 4 for calling the Dataset obj's underlying member method code with example usage: obj._valid_path_append(path) and returns: path, res, res