docstr: Checks for input if:
      - it is a (sequence of) multivariate series (width>1)
      - (sequence of) series must be:
          * a deterministic TimeSeries
          * binary (only values equal to 0 or 1)
docstr_tok: ["Checks","for","input","if",":","-","it","is","a","(","sequence","of",")","multivariate","series","(","width",">","1",")","-","(","sequence","of",")","series","must","be",":","*","a","deterministic","TimeSeries","*","binary","(","only","values","equal","to","0","or","1",")"]
code: def _check_input(
      self, series: Union[TimeSeries, Sequence[TimeSeries]]
  ):
      """
      Checks for input if:
          - it is a (sequence of) multivariate series (width>1)
          - (sequence of) series must be:
              * a deterministic TimeSeries
              * binary (only values equal to 0 or 1)
      """
  
      list_series = _to_list(series)
  
      raise_if_not(
          all([isinstance(s, TimeSeries) for s in list_series]),
          "all series in `series` must be of type TimeSeries.",
      )
  
      raise_if_not(
          all([s.width > 1 for s in list_series]),
          "all series in `series` must be multivariate (width>1).",
      )
  
      raise_if_not(
          all([s.is_deterministic for s in list_series]),
          "all series in `series` must be deterministic (number of samples=1).",
      )
  
      raise_if_not(
          all(
              [
                  np.array_equal(
                      s.values(copy=False),
                      s.values(copy=False).astype(bool),
                  )
                  for s in list_series
              ]
          ),
          "all series in `series` must be binary (only 0 and 1 values).",
      )
  
      return list_series
  
imports: from abc import ABC, abstractmethod
  from typing import Any, Sequence, Union
  import numpy
  from darts import TimeSeries
  from darts.ad.utils import _to_list, eval_accuracy_from_binary_prediction
  from darts.logging import raise_if_not
label_desc: Use image node_id 5 for calling the Aggregator obj's underlying member method code with example usage: obj._check_input(series) and returns: list_series