async def METHOD_NAME(self):
    self.mem = {}
    # Iterate over the labels list
    for label in self.config.labels:
        if self.config.labels == ["unlabelled"]:
            folders = self.config.foldername
        else:
            folders = self.config.foldername.joinpath(label)
        # Go through all image files and read them using pngconfigloader
        for file_name in map(
            os.path.basename, glob.glob(str(folders) + "/*")
        ):
            image_filename = folders.joinpath(file_name)
            async with self.CONFIG_LOADER as cfgl:
                _, feature_data = await cfgl.load_file(image_filename)
            if self.config.labels != ["unlabelled"]:
                file_name = label + "/" + file_name
            self.mem[file_name] = Record(
                file_name,
                data={
                    "features": {
                        self.config.feature: feature_data,
                        "label": label,
                    }
                },
            )
            if self.config.labels == ["unlabelled"]:
                del self.mem[file_name].features()["label"]
    self.logger.debug("%r loaded %d records", self, len(self.mem))