def iter_extensions(extension):
    for _, ext in inspect.getmembers(extension, is_extension):
        for item in iter_extensions(ext):
            yield item
        yield ext
Depth-first iterator over sub-extensions on `extension`.
dataset/ETHPy150Open onefinestay/nameko/nameko/extensions.py/iter_extensions