code: def test_FilteringAnomalyModelInput(self):
      # model input
      # model input must be of type FilteringModel
      with pytest.raises(ValueError):
          FilteringAnomalyModel(model="str", scorer=NormScorer())
      with pytest.raises(ValueError):
          FilteringAnomalyModel(model=1, scorer=NormScorer())
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=RegressionModel(lags=10), scorer=NormScorer()
          )
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=[
                  MovingAverageFilter(window=10),
                  MovingAverageFilter(window=10),
              ],
              scorer=NormScorer(),
          )
  
      # scorer input
      # scorer input must be of type AnomalyScorer
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=MovingAverageFilter(window=10), scorer=1
          )
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=MovingAverageFilter(window=10), scorer="str"
          )
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=MovingAverageFilter(window=10),
              scorer=MovingAverageFilter(window=10),
          )
      with pytest.raises(ValueError):
          FilteringAnomalyModel(
              model=MovingAverageFilter(window=10),
              scorer=[NormScorer(), "str"],
          )
  
imports: from typing import Dict, Sequence, Tuple
  import numpy
  import pandas
  import pytest
  from pyod.models.knn import KNN
  from darts import TimeSeries
  from darts.ad import AndAggregator
  from darts.ad import EnsembleSklearnAggregator
  from darts.ad import OrAggregator
  from darts.ad import QuantileDetector
  from darts.ad import ThresholdDetector
  from darts.ad import CauchyNLLScorer
  from darts.ad import DifferenceScorer
  from darts.ad import ExponentialNLLScorer, FilteringAnomalyModel, ForecastingAnomalyModel, GammaNLLScorer, GaussianNLLScorer, KMeansScorer, LaplaceNLLScorer, NormScorer, PoissonNLLScorer, PyODScorer, WassersteinScorer
  from darts.ad.utils import eval_accuracy_from_scores, show_anomalies_from_scores
  from darts.models import MovingAverageFilter, NaiveSeasonal, RegressionModel
label_desc: Use image node_id 9 for calling the TestADAnomalyModel obj's underlying member method code with example usage: obj.test_FilteringAnomalyModelInput() without return types