def from_files(
        cls,
        predict_files: Optional[List[str]] = None,
        input_cls: Type[Input] = IceVisionInput,
        predict_transform: INPUT_TRANSFORM_TYPE = KeypointDetectionInputTransform,
        transform_kwargs: Optional[Dict] = None,
        **data_module_kwargs: Any,
    ) -> "DataModule":
        """Creates a :class:`~flash.core.data.data_module.DataModule` object from the given a list of files.

        This is supported only for the predicting stage.

        Args:
            predict_files: The list of files containing the predict data.
            input_cls: The :class:`~flash.core.data.io.input.Input` used to create the dataset.
            predict_transform: The dictionary of transforms to use during predicting which maps.
            transform_kwargs: Keyword arguments provided to the transform on instantiation.
            data_module_kwargs: The keywords arguments for creating the datamodule.

        Returns:
            The constructed data module.

        """
        return cls(
            predict_input=input_cls(RunningStage.PREDICTING, predict_files),
            transform=predict_transform,
            transform_kwargs=transform_kwargs,
            **data_module_kwargs,
        )
Creates a :class:`~flash.core.data.data_module.DataModule` object from the given a list of files.

        This is supported only for the predicting stage.

        Args:
            predict_files: The list of files containing the predict data.
            input_cls: The :class:`~flash.core.data.io.input.Input` used to create the dataset.
            predict_transform: The dictionary of transforms to use during predicting which maps.
            transform_kwargs: Keyword arguments provided to the transform on instantiation.
            data_module_kwargs: The keywords arguments for creating the datamodule.

        Returns:
            The constructed data module.

        
src/flash/image/keypoint_detection/data.py