def helper_compare_hf(self, ts_A, ts_B):
        """Helper method to compare all the entries between two historical forecasts"""
        type_ts_a = get_series_seq_type(ts_A)
        type_ts_b = get_series_seq_type(ts_B)

        assert type_ts_a == type_ts_b
        assert len(ts_A) == len(ts_B)

        if type_ts_a == SeriesType.SINGLE:
            ts_A = [[ts_A]]
            ts_B = [[ts_B]]
        elif type_ts_a == SeriesType.SEQ:
            ts_A = [ts_A]
            ts_B = [ts_B]

        for ts_a, ts_b in zip(ts_A, ts_B):
            for ts_a_, ts_b_ in zip(ts_a, ts_b):
                assert ts_a_.time_index.equals(ts_b_.time_index)
                np.testing.assert_almost_equal(
                    ts_a_.all_values(),
                    ts_b_.all_values(),
                )
Helper method to compare all the entries between two historical forecasts
darts/tests/utils/historical_forecasts/test_historical_forecasts.py