<s> import argparse <EOL> import sys <EOL> import time <EOL> from cifar10 import Cifar10Downloader <EOL> from cifar100 import Cifar100Downloader <EOL> from mnist import MnistDownloader <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> parser = argparse . ArgumentParser ( description = '<STR_LIT>' ) <EOL> parser . add_argument ( '<STR_LIT>' , <EOL> help = '<STR_LIT>' <EOL> ) <EOL> parser . add_argument ( '<STR_LIT>' , <EOL> help = '<STR_LIT>' <EOL> ) <EOL> parser . add_argument ( '<STR_LIT:-c>' , '<STR_LIT>' , <EOL> action = '<STR_LIT:store_true>' , <EOL> help = '<STR_LIT>' <EOL> ) <EOL> args = vars ( parser . parse_args ( ) ) <EOL> dataset = args [ '<STR_LIT>' ] . lower ( ) <EOL> start = time . time ( ) <EOL> if dataset == '<STR_LIT>' : <EOL> d = MnistDownloader ( <EOL> outdir = args [ '<STR_LIT>' ] , <EOL> clean = args [ '<STR_LIT>' ] ) <EOL> d . getData ( ) <EOL> elif dataset == '<STR_LIT>' : <EOL> d = Cifar10Downloader ( <EOL> outdir = args [ '<STR_LIT>' ] , <EOL> clean = args [ '<STR_LIT>' ] ) <EOL> d . getData ( ) <EOL> elif dataset == '<STR_LIT>' : <EOL> d = Cifar100Downloader ( <EOL> outdir = args [ '<STR_LIT>' ] , <EOL> clean = args [ '<STR_LIT>' ] ) <EOL> d . getData ( ) <EOL> else : <EOL> print '<STR_LIT>' % args [ '<STR_LIT>' ] <EOL> sys . exit ( <NUM_LIT:1> ) <EOL> print '<STR_LIT>' % ( time . time ( ) - start ) </s>
