def test_item_dtype(subset: str, datamodule: AnomalibDataModule) -> None:
        """Test that the input tensor is of float type and scaled between 0-1."""
        # Get the dataloader.
        dataloader = getattr(datamodule, f"{subset}_dataloader")()

        # Get the first batch.
        batch = next(iter(dataloader))
        clip = batch.image
        assert clip.dtype == torch.float32
        assert clip.min() >= 0
        assert clip.max() <= 1
Test that the input tensor is of float type and scaled between 0-1.
tests/unit/data/datamodule/base/video.py