class_docstr: Base class for all anomaly scorers
code: def __init__(self, univariate_scorer: bool, window: int) -> None:
      raise_if_not(
          type(window) is int,
          f"Parameter `window` must be an integer, found type {type(window)}.",
      )
  
      raise_if_not(
          window > 0,
          f"Parameter `window` must be stricly greater than 0, found size {window}.",
      )
  
      self.window = window
  
      self.univariate_scorer = univariate_scorer
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Sequence, Union
  import numpy
  from darts import TimeSeries
  from darts.ad.utils import _assert_same_length, _assert_timeseries, _intersect, _sanity_check_two_series, _to_list, eval_accuracy_from_scores, show_anomalies_from_scores
  from darts.logging import get_logger, raise_if_not
label_desc: Use image node_id 1 to create a new AnomalyScorer object from inherited base classes: ABC with example: obj = AnomalyScorer(univariate_scorer, window)