def test_create_anomalib_metric_subclass() -> None:
        """Test if defining a metric using a subclass works."""

        class AnomalibDummyMetric(AnomalibMetric, DummyMetric):
            pass

        assert issubclass(AnomalibDummyMetric, AnomalibMetric)
        assert issubclass(AnomalibDummyMetric, Metric)
Test if defining a metric using a subclass works.
tests/unit/metrics/test_anomalib_metric.py