def _sanity_check_two_series(
    series_1: TimeSeries,
    series_2: TimeSeries,
    name_series_1: str,
    name_series_2: str,
):
    """Performs sanity check on the two given inputs

    Checks if the two inputs:
        - type is Darts Timeseries
        - have the same number of components
        - if their intersection in time is not null

    Parameters
    ----------
    series_1
        1st time series
    series_2:
        2nd time series
    """

    _assert_timeseries(series_1, name=name_series_1)
    _assert_timeseries(series_2, name=name_series_2)

    # check if the two inputs time series have the same number of components
    if series_1.width != series_2.width:
        raise_log(
            ValueError(
                f"The series from `{name_series_1}` and `{name_series_2}` must have the "
                f"same number of components, found {series_1.width} and {series_2.width}."
            ),
            logger=logger,
        )
Performs sanity check on the two given inputs

    Checks if the two inputs:
        - type is Darts Timeseries
        - have the same number of components
        - if their intersection in time is not null

    Parameters
    ----------
    series_1
        1st time series
    series_2:
        2nd time series
    
darts/ad/utils.py