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

        This method validates lists of image file paths. It handles:
            - Type conversion to strings
            - Path list validation

        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.

        Examples:
            Validate list of paths::

                >>> paths = ['image1.jpg', 'image2.jpg', 'image3.jpg']
                >>> validated = NumpyImageBatchValidator.validate_image_path(paths)
                >>> validated
                ['image1.jpg', 'image2.jpg', 'image3.jpg']

            Validate mixed type paths::

                >>> paths = ['image1.jpg', 2, 'image3.jpg']
                >>> validated = NumpyImageBatchValidator.validate_image_path(paths)
                >>> validated
                ['image1.jpg', '2', 'image3.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 lists of image file paths. It handles:
            - Type conversion to strings
            - Path list validation

        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.

        Examples:
            Validate list of paths::

                >>> paths = ['image1.jpg', 'image2.jpg', 'image3.jpg']
                >>> validated = NumpyImageBatchValidator.validate_image_path(paths)
                >>> validated
                ['image1.jpg', 'image2.jpg', 'image3.jpg']

            Validate mixed type paths::

                >>> paths = ['image1.jpg', 2, 'image3.jpg']
                >>> validated = NumpyImageBatchValidator.validate_image_path(paths)
                >>> validated
                ['image1.jpg', '2', 'image3.jpg']
        
src/anomalib/data/validators/numpy/image.py