class_docstr: Base class for all anomaly scorers
docstr: Checks if the parameter window is less or equal than the length of the given series
docstr_tok: ["Checks","if","the","parameter","window","is","less","or","equal","than","the","length","of","the","given","series"]
code: def _check_window_size(self, series: TimeSeries):
      """Checks if the parameter window is less or equal than the length of the given series"""
  
      raise_if_not(
          self.window <= len(series),
          f"Window size {self.window} is greater than the targeted series length {len(series)}, "
          + "must be lower or equal. Decrease the window size or increase the length series input"
          + " to score on.",
      )
  
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 3 for calling the AnomalyScorer obj's underlying member method code with example usage: obj._check_window_size(series) without return types