def validate_depth_path(depth_path: list[str] | None) -> list[str] | None:
        """Validate depth map file paths for a batch.

        Args:
            depth_path (list[str] | None): List of depth map file paths to validate.

        Returns:
            list[str] | None: Validated depth map file paths.

        Raises:
            TypeError: If depth_path is not a list of strings.
        """
        if depth_path is None:
            return None
        if not isinstance(depth_path, list):
            msg = f"Depth path must be a list of strings, got {type(depth_path)}."
            raise TypeError(msg)
        return [validate_path(path) for path in depth_path]
Validate depth map file paths for a batch.

        Args:
            depth_path (list[str] | None): List of depth map file paths to validate.

        Returns:
            list[str] | None: Validated depth map file paths.

        Raises:
            TypeError: If depth_path is not a list of strings.
        
src/anomalib/data/validators/numpy/depth.py