def METHOD_NAME(it: Iterable[Any]) -> Iterator[Any]:
    for x in it:
        if isinstance(x, Iterable) and not isinstance(x, (str, bytes)):
            yield from METHOD_NAME(x)
        else:
            yield x