def check_dynamic_balance_class_sampler(labels: List, exp_l: float) -> None:
    """
    Check DynamicBalanceClassSampler on certain inputs

    Args:
        labels: list of labels
        exp_l: exponent figure for schedule
    """
    sampler = DynamicBalanceClassSampler(labels, exp_l)
    n_labels = len(np.unique(labels))
    labels_counter = Counter(labels)
    min_class_key, min_class_size = labels_counter.most_common(n_labels)[-1]
    current_d = {key: value / min_class_size for key, value in Counter(labels).items()}
    for _ in range(10):
        new_counter = Counter(labels[list(sampler.__iter__())])
        new_d = {key: value / min_class_size for key, value in new_counter.items()}
        for key, value in new_d.items():
            assert value <= current_d[key]
        assert new_d[min_class_key] == 1
        current_d = new_d

    Check DynamicBalanceClassSampler on certain inputs

    Args:
        labels: list of labels
        exp_l: exponent figure for schedule
    
tests/catalyst/data/test_sampler.py