def generate_dataset(path, variant='<STR_LIT>', outputpath="<STR_LIT:.>"):
filename = os.path.join(outputpath, "<STR_LIT>" % variant)<EOL>if variant == '<STR_LIT>':<EOL><INDENT>ratings, movies = _read_dataframes_20M(path)<EOL><DEDENT>elif variant == '<STR_LIT>':<EOL><INDENT>ratings, movies = _read_dataframes_100k(path)<EOL><DEDENT>else:<EOL><INDENT>ratings, movies = _read_dataframes(path)<EOL><DEDENT>_hfd5_from_dataframe(ratings, movies, filename)<EOL>
Generates a hdf5 movielens datasetfile from the raw datafiles found at:
    https://grouplens.org/datasets/movielens/20m/

    You shouldn't have to run this yourself, and can instead just download the
    output using the 'get_movielens' funciton./