code: def append_summary_to_module_docstring(module):
    
    pairs = [(name, getattr(module, name)) for name in module.__all__]
    kws = dict(key_header="Name", summary_type="module contents")
    module.__doc__ = docstring_with_summary(module.__doc__, pairs, **kws)
docs: Change the ``module.__doc__`` docstring to include a summary table based
    on its contents as declared on ``module.__all__``.