def _check_visits(self, expected_results, max_num_considered_actions,
                    num_simulations):
    """Compares the expected results to the returned considered visits."""
    self.assertLen(expected_results, num_simulations)
    results = seq_halving.get_sequence_of_considered_visits(
        max_num_considered_actions, num_simulations)
    self.assertEqual(tuple(expected_results), results)
Compares the expected results to the returned considered visits.
mctx/_src/tests/seq_halving_test.py