def label_matches(cli_label, pattern_label):
    """
    Checks if the label provided via CLI matches the label (or list of labels)
    from the pattern

    Returns:
        True if label matches, otherwise False
    """
    if not cli_label:
        return True
    if not isinstance(pattern_label, list):
        pattern_label = [pattern_label]
    return cli_label in pattern_label
