def update(
        self,
        *args,
        anomaly_scores: torch.Tensor | None = None,
        anomaly_maps: torch.Tensor | None = None,
        **kwargs,
    ) -> None:
        """Update the internal state with new scores and maps.

        Args:
            *args: Unused positional arguments.
            anomaly_scores: Batch of image-level anomaly scores.
            anomaly_maps: Batch of pixel-level anomaly maps.
            **kwargs: Unused keyword arguments.
        """
        del args, kwargs  # These variables are not used.

        if anomaly_maps is not None:
            self.anomaly_maps.append(anomaly_maps)
        if anomaly_scores is not None:
            self.anomaly_scores.append(anomaly_scores)
Update the internal state with new scores and maps.

        Args:
            *args: Unused positional arguments.
            anomaly_scores: Batch of image-level anomaly scores.
            anomaly_maps: Batch of pixel-level anomaly maps.
            **kwargs: Unused keyword arguments.
        
src/anomalib/metrics/anomaly_score_distribution.py