(labels)
Validate labels
Validate labels
Validate labels
def validate_labels(labels):
    """"Validate labels"""

    for attr, validate_method in labels_validators.items():
        if labels.get(attr) is not None:
            validate_method(labels)
def validate_labels ( labels ) : for attr , validate_method in labels_validators . items ( ) : if labels . get ( attr ) is not None : validate_method ( labels )