code: def from_movie_posters(
      batch_size: int = 4,
      num_workers: int = 0,
      **data_module_kwargs,
  ) -> ImageClassificationData:
      """Downloads and loads the movie posters genre classification data set."""
      download_data(
          "https://pl-flash-data.s3.amazonaws.com/movie_posters.zip",
          "./data",
      )
  
      def resolver(root, file_id):
          return os.path.join(root, f"{file_id}.jpg")
  
      return ImageClassificationData.from_csv(
          "Id",
          ["Action", "Romance", "Crime", "Thriller", "Adventure"],
          train_file="data/movie_posters/train/metadata.csv",
          train_resolver=resolver,
          val_file="data/movie_posters/val/metadata.csv",
          val_resolver=resolver,
          batch_size=batch_size,
          num_workers=num_workers,
          **data_module_kwargs,
      )
  
imports: import os
  from flash.core.data.utils import download_data
  from flash.core.utilities.flash_cli import FlashCLI
  from flash.image import ImageClassificationData, ImageClassifier
label_desc: Use image node_id 2 for calling a global function with example usage: from_movie_posters(batch_size, num_workers) and returns: ImageClassificationData, os