def data_available(dataset_name=None):
dr = data_resources[dataset_name]<EOL>if '<STR_LIT>' in dr:<EOL><INDENT>for dirs, files in zip(dr['<STR_LIT>'], dr['<STR_LIT>']):<EOL><INDENT>for dir, file in zip(dirs, files):<EOL><INDENT>if not os.path.exists(os.path.join(data_path, dataset_name, dir, file)):<EOL><INDENT>return False<EOL><DEDENT><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>for file_list in dr['<STR_LIT>']:<EOL><INDENT>for file in file_list:<EOL><INDENT>if not os.path.exists(os.path.join(data_path, dataset_name, file)):<EOL><INDENT>return False<EOL><DEDENT><DEDENT><DEDENT><DEDENT>return True<EOL>
Check if the data set is available on the local machine already.