class_docstr: The ``ImageClassificationData`` class is a :class:`~flash.core.data.data_module.DataModule` with a set of
  classmethods for loading data for image classification.
docstr: Creates a :class:`~flash.core.data.data_module.DataModule` object from the given datasets using the
  :class:`~flash.core.data.io.input.Input` of name :attr:`~flash.core.data.io.input.InputFormat.DATASETS` from the
  passed or constructed :class:`~flash.core.data.io.input_transform.InputTransform`.
  
  Args:
      train_dataset: Dataset used during training.
      val_dataset: Dataset used during validating.
      test_dataset: Dataset used during testing.
      predict_dataset: Dataset used during predicting.
      input_cls: Input class used to create the datasets.
      transform: The :class:`~flash.core.data.io.input_transform.InputTransform` type to use.
      transform_kwargs: Additional keyword arguments to be used when constructing the transform.
      data_module_kwargs: Additional keyword arguments to use when constructing the DataModule.
  
  Returns:
      The constructed data module.
  
  Examples::
  
      data_module = DataModule.from_datasets(
          train_dataset=train_dataset,
      )
code: def from_datasets(
      cls,
      train_dataset: Optional[Dataset] = None,
      val_dataset: Optional[Dataset] = None,
      test_dataset: Optional[Dataset] = None,
      predict_dataset: Optional[Dataset] = None,
      input_cls: Type[Input] = DatasetInput,
      transform: INPUT_TRANSFORM_TYPE = ImageClassificationInputTransform,
      transform_kwargs: Optional[Dict] = None,
      **data_module_kwargs: Any,
  ) -> "DataModule":
      """Creates a :class:`~flash.core.data.data_module.DataModule` object from the given datasets using the
      :class:`~flash.core.data.io.input.Input` of name :attr:`~flash.core.data.io.input.InputFormat.DATASETS` from the
      passed or constructed :class:`~flash.core.data.io.input_transform.InputTransform`.
  
      Args:
          train_dataset: Dataset used during training.
          val_dataset: Dataset used during validating.
          test_dataset: Dataset used during testing.
          predict_dataset: Dataset used during predicting.
          input_cls: Input class used to create the datasets.
          transform: The :class:`~flash.core.data.io.input_transform.InputTransform` type to use.
          transform_kwargs: Additional keyword arguments to be used when constructing the transform.
          data_module_kwargs: Additional keyword arguments to use when constructing the DataModule.
  
      Returns:
          The constructed data module.
  
      Examples::
  
          data_module = DataModule.from_datasets(
              train_dataset=train_dataset,
          )
  
      """
      ds_kw = {}
  
      return cls(
          input_cls(RunningStage.TRAINING, train_dataset, **ds_kw),
          input_cls(RunningStage.VALIDATING, val_dataset, **ds_kw),
          input_cls(RunningStage.TESTING, test_dataset, **ds_kw),
          input_cls(RunningStage.PREDICTING, predict_dataset, **ds_kw),
          transform=transform,
          transform_kwargs=transform_kwargs,
          **data_module_kwargs,
      )
  
imports: from typing import Any, Callable, Collection, Dict, List, Optional, Sequence, Tuple, Type, Union
  import numpy
  import pandas
  from torch import Tensor
  from torch.utils.data import Dataset
  from flash.core.data.base_viz import BaseVisualization
  from flash.core.data.callback import BaseDataFetcher
  from flash.core.data.data_module import DataModule, DatasetInput
  from flash.core.data.io.input import DataKeys, Input
  from flash.core.data.io.input_transform import INPUT_TRANSFORM_TYPE
  from flash.core.data.utilities.classification import TargetFormatter
  from flash.core.data.utilities.paths import PATH_TYPE
  from flash.core.integrations.labelstudio.input import LabelStudioImageClassificationInput, _parse_labelstudio_arguments
  from flash.core.utilities.imports import _FIFTYONE_AVAILABLE, _MATPLOTLIB_AVAILABLE, _TOPIC_IMAGE_AVAILABLE, Image, requires
  from flash.core.utilities.stages import RunningStage
  from flash.image.classification.input import ImageClassificationCSVInput, ImageClassificationDataFrameInput, ImageClassificationFiftyOneInput, ImageClassificationFilesInput, ImageClassificationFolderInput, ImageClassificationImageInput, ImageClassificationNumpyInput, ImageClassificationTensorInput
  from flash.image.classification.input_transform import ImageClassificationInputTransform
label_desc: Use image node_id 10 for calling the ImageClassificationData obj's underlying member method code with example usage: obj.from_datasets(cls, train_dataset, val_dataset, test_dataset, predict_dataset, input_cls, transform, transform_kwargs) and returns: cls