def METHOD_NAME(ns, cmds, _write):
    for cmd, content in cmds.items():
        if 'USAGE' not in content:
            breakpoint()
        _write(
            rst_anchor(f'command-{cmd.replace(" ", "-")}')
        )
        _write(
            rst_heading(cmd, 1)
        )
        _write(
            rst_code_block(content['USAGE'], 'bash')
        )
        _write(
            rst_body(content['DESCRIPTION'])
        )
        for key, text in content.items():
            key = key.upper()
            if key in {'USAGE', 'DESCRIPTION'}:
                continue
            _write(
                rst_heading(key.capitalize(), 2)
            )
            if key in {'OPTIONS'}:
                _write(
                    rst_code_block(text)
                )
            elif key in {'EXAMPLE', 'EXAMPLES'}:
                _write(
                    rst_code_block(text, 'bash')
                )
            else:
                _write(
                    rst_body(text)
                )