code: def _assert_same_length(
      list_series_1: Sequence[TimeSeries],
      list_series_2: Sequence[TimeSeries],
  ):
      """Checks if the two sequences contain the same number of TimeSeries."""
  
      raise_if_not(
          len(list_series_1) == len(list_series_2),
          "Sequences of series must be of the same length, found length:"
          + f" {len(list_series_1)} and {len(list_series_2)}.",
      )
  
file_path: darts/darts/ad/utils.py
imports: from typing import Sequence, Tuple, Union
  import matplotlib.pyplot
  import numpy
  from sklearn.metrics import accuracy_score, average_precision_score, f1_score, precision_score, recall_score, roc_auc_score
  from darts import TimeSeries
  from darts.logging import get_logger, raise_if, raise_if_not
label_desc: Use image node_id 10 for calling a global function with example usage: _assert_same_length(list_series_1, list_series_2) without return types