code: def load_dataset(self, dataset, verbose=True):
          
          assert self.get_dataset(dataset) is True, "Datasets aren't properly downloaded, " \
                                                    "rerun to try again or download datasets manually."
  
          if verbose:
              print("Loading %s" % dataset)
  
          dataset_path = self.base_dataset_path + dataset
          for path in tqdm(glob.glob(dataset_path + "/*.gnt")):
              for image, label in self.load_gnt_file(path):
                  yield image, label
docs: Load a directory of gnt files. Yields the image and label in tuples.
          :param dataset: The directory to load.
          :return:  Yields (Pillow.Image.Image, label) pairs.