@staticmethod
def check_classes_balance(counts):
    """Checks that the dataset contains enough samples of each class"""
    for item1 in counts:
        for item2 in counts:
            if item1 > item2 * 3:
                return (
                    'Provided classes are very unbalanced, predictions may not be accurate.'
                    )
    return False
