#NEWLINE# def load_dataset( name ) : #NEWLINE# #INDENT# '\n    Load dataset defined with name in SETTINGS json from cache. If not in cache\n    create the dataset.\n    \n    Args:\n        name - a string of a valid dataset defined in SETTINGS\n    \n    Returns:\n        the dataset\n    ' #NEWLINE# try : #NEWLINE# #INDENT# dataset = utils . load_from_cache ( name ) #NEWLINE# logger . info ( ( 'Loaded dataset %s from cache' % name ) ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# dataset = make_dataset ( dataset ) #NEWLINE# utils . save_to_cache ( dataset , name ) #NEWLINE# #UNINDENT# return dataset