def get_leaf_decision(l_yes, l_no, parent_decision) -> int:
    """returns leaf decision with majority decision if not equal else returns it's parent decision"""
    leaf_value = 0
    if l_yes > l_no:
        leaf_value = 1
    elif l_yes == l_no:
        leaf_value = 1 if parent_decision else 0
    return leaf_value