def iter_rich_args(rich_args) -> Iterable[Union[(Any, Tuple[(str, Any)])]]:
    for arg in rich_args:
        if isinstance(arg, tuple):
            if (len(arg) == 3):
                (key, child, default) = arg
                if (default == child):
                    continue
                (yield (key, child))
            elif (len(arg) == 2):
                (key, child) = arg
                (yield (key, child))
            elif (len(arg) == 1):
                (yield arg[0])
        else:
            (yield arg)
def iter_rich_args(rich_args) -> Iterable[Union[(Any, Tuple[(str, Any)])]]:
    for arg in rich_args:
        if isinstance(arg, tuple):
            if (len(arg) == 3):
                (key, child, default) = arg
                if (default == child):
                    continue
                (yield (key, child))
            elif (len(arg) == 2):
                (key, child) = arg
                (yield (key, child))
            elif (len(arg) == 1):
                (yield arg[0])
        else:
            (yield arg)