def validate_image_path(image_path: list[str] | None) -> list[str] | None:
        """Validate the image paths for a batch.

        This method validates batches of image file paths.

        Args:
            image_path (``list[str]`` | ``None``): Input list of image paths.

        Returns:
            ``list[str]`` | ``None``: Validated list of image paths, or None.

        Raises:
            TypeError: If ``image_path`` is not a list of strings.

        Example:
            Validate image paths::

                >>> from anomalib.data.validators import ImageBatchValidator
                >>> image_paths = ["path/to/image_1.jpg", "path/to/image_2.jpg"]
                >>> validated = ImageBatchValidator.validate_image_path(image_paths)
                >>> validated
                ['path/to/image_1.jpg', 'path/to/image_2.jpg']
        """
        if image_path is None:
            return None
        if not isinstance(image_path, list):
            msg = f"Image path must be a list of strings, got {type(image_path)}."
            raise TypeError(msg)
        return [str(path) for path in image_path]
Validate the image paths for a batch.

        This method validates batches of image file paths.

        Args:
            image_path (``list[str]`` | ``None``): Input list of image paths.

        Returns:
            ``list[str]`` | ``None``: Validated list of image paths, or None.

        Raises:
            TypeError: If ``image_path`` is not a list of strings.

        Example:
            Validate image paths::

                >>> from anomalib.data.validators import ImageBatchValidator
                >>> image_paths = ["path/to/image_1.jpg", "path/to/image_2.jpg"]
                >>> validated = ImageBatchValidator.validate_image_path(image_paths)
                >>> validated
                ['path/to/image_1.jpg', 'path/to/image_2.jpg']
        
src/anomalib/data/validators/torch/image.py