def num_dataloaders(self) -> int:
        """Returns the number of prediction dataloaders."""
        combined_loader = self._combined_loader
        assert combined_loader is not None
        return len(combined_loader.flattened)
Returns the number of prediction dataloaders.
src/lightning/pytorch/loops/prediction_loop.py