def add_sections(app, doctree, fromdocname):
needs = getattr(app.builder.env, '<STR_LIT>', {})<EOL>for key, need_info in needs.items():<EOL><INDENT>sections = get_sections(need_info)<EOL>need_info['<STR_LIT>'] = sections<EOL>need_info['<STR_LIT>'] = sections[<NUM_LIT:0>] if sections else "<STR_LIT>"<EOL><DEDENT>
Add section titles to the needs as additional attributes that can
    be used in tables and filters