code: def test_eval_accuracy(self):
      detector = ThresholdDetector(low_threshold=0.2)
  
      # Check return types
      # Check if return type is float when input is a series
      assert isinstance(
          detector.eval_accuracy(self.anomalies, self.test), float
      )
  
      # Check if return type is Sequence when input is a Sequence of series
      assert isinstance(
          detector.eval_accuracy(self.anomalies, [self.test]), Sequence
      )
  
      # Check if return type is Sequence when input is a multivariate series
      assert isinstance(
          detector.eval_accuracy(self.mts_anomalies, self.mts_test),
          Sequence,
      )
  
      # Check if return type is Sequence when input is a multivariate series
      assert isinstance(
          detector.eval_accuracy(self.mts_anomalies, [self.mts_test]),
          Sequence,
      )
  
      with pytest.raises(ValueError):
          # Input cannot be probabilistic
          detector.eval_accuracy(self.anomalies, self.probabilistic)
  
file_path: darts/darts/tests/ad/test_detectors.py
imports: from typing import Sequence
  import numpy
  import pytest
  from darts import TimeSeries
  from darts.ad.detectors.quantile_detector import QuantileDetector
  from darts.ad.detectors.threshold_detector import ThresholdDetector
label_desc: Use image node_id 3 for calling the TestADDetectors obj's underlying member method code with example usage: obj.test_eval_accuracy() without return types