def get_dataset(name, split_name, dataset_dir, file_pattern=None, reader=None):
 if (name not in datasets_map):
  raise ValueError(('Name of dataset unknown %s' % name))
 return datasets_map[name].get_split(split_name, dataset_dir, file_pattern, reader)

def get_dataset ( name , split_name , dataset_dir , file_pattern = None , reader = None ) : if ( name not in datasets_map ) : raise ValueError ( ( 'Name of dataset unknown %s' % name ) ) return datasets_map [ name ] . get_split ( split_name , dataset_dir , file_pattern , reader )
given a dataset name and a split_name returns a dataset .