def getDataProvider(dataset):
 assert (dataset in ['flickr8k', 'flickr30k', 'coco']), ('dataset %s unknown' % (dataset,))
 return BasicDataProvider(dataset)

def getDataProvider ( dataset ) : assert ( dataset in [ 'flickr8k' , 'flickr30k' , 'coco' ] ) , ( 'dataset %s unknown' % ( dataset , ) ) return BasicDataProvider ( dataset )
we could intercept a special dataset and return different data providers .