def METHOD_NAME(self):
    self.val_dataset = self.dataset_cls(
        self.data_dir,
        self.val_transform_keys,
        split="val",
        image_size=self.image_size,
        max_text_len=self.max_text_len,
        draw_false_image=self.draw_false_image,
        draw_false_text=self.draw_false_text,
        image_only=self.image_only,
    )
    if hasattr(self, "dataset_cls_no_false"):
        self.val_dataset_no_false = self.dataset_cls_no_false(
            self.data_dir,
            self.val_transform_keys,
            split="val",
            image_size=self.image_size,
            max_text_len=self.max_text_len,
            draw_false_image=0,
            draw_false_text=0,
            image_only=self.image_only,
        )