code: def from_fddb(
      batch_size: int = 1,
      **data_module_kwargs,
  ) -> FaceDetectionData:
      """Downloads and loads the FDDB data set."""
      import fastface as ff
  
      train_dataset = ff.dataset.FDDBDataset(
          source_dir="data/", phase="train"
      )
      val_dataset = ff.dataset.FDDBDataset(
          source_dir="data/", phase="val"
      )
  
      return FaceDetectionData.from_datasets(
          train_dataset=train_dataset,
          val_dataset=val_dataset,
          batch_size=batch_size,
          **data_module_kwargs,
      )
  
imports: from flash.core.utilities.flash_cli import FlashCLI
  from flash.image.face_detection.data import FaceDetectionData
  from flash.image.face_detection.model import FaceDetector
label_desc: Use image node_id 1 for calling a global function with example usage: from_fddb(batch_size) and returns: FaceDetectionData