def test_create_anomalib_metric_function() -> None:
        """Test if defining a metric using the function works."""
        metric_cls = create_anomalib_metric(DummyMetric)
        assert issubclass(metric_cls, AnomalibMetric)
        assert issubclass(metric_cls, Metric)
Test if defining a metric using the function works.
tests/unit/metrics/test_anomalib_metric.py