code: def test_eval_accuracy(self):
      aggregator = AndAggregator()
  
      # Check return types
      assert isinstance(
          aggregator.eval_accuracy(
              self.real_anomalies, self.mts_anomalies1
          ),
          float,
      )
      assert isinstance(
          aggregator.eval_accuracy(
              [self.real_anomalies], [self.mts_anomalies1]
          ),
          Sequence,
      )
      assert isinstance(
          aggregator.eval_accuracy(
              self.real_anomalies, [self.mts_anomalies1]
          ),
          Sequence,
      )
      assert isinstance(
          aggregator.eval_accuracy(
              [self.real_anomalies, self.real_anomalies],
              [self.mts_anomalies1, self.mts_anomalies2],
          ),
          Sequence,
      )
  
      # intersection between 'actual_anomalies' and the series in the sequence 'list_series'
      # must be non empty
      with pytest.raises(ValueError):
          aggregator.eval_accuracy(
              self.real_anomalies[:30], self.mts_anomalies1[40:]
          )
      with pytest.raises(ValueError):
          aggregator.eval_accuracy(
              [self.real_anomalies, self.real_anomalies[:30]],
              [self.mts_anomalies1, self.mts_anomalies1[40:]],
          )
  
      # window parameter must be smaller than the length of the input (len = 100)
      with pytest.raises(ValueError):
          aggregator.eval_accuracy(
              self.real_anomalies, self.mts_anomalies1, window=101
          )
  
file_path: darts/darts/tests/ad/test_aggregators.py
imports: from typing import Sequence
  import numpy
  import pytest
  from sklearn.ensemble import GradientBoostingClassifier
  from darts import TimeSeries
  from darts.ad.aggregators.and_aggregator import AndAggregator
  from darts.ad.aggregators.ensemble_sklearn_aggregator import EnsembleSklearnAggregator
  from darts.ad.aggregators.or_aggregator import OrAggregator
  from darts.models import MovingAverageFilter
label_desc: Use image node_id 3 for calling the TestADAggregators obj's underlying member method code with example usage: obj.test_eval_accuracy() without return types