def METHOD_NAME(self):
    idx = self['index']
    out = []
    if len(idx) == 0:
        return out
    out += ['.. index:: %s' % idx.get('default','')]
    for section, references in iteritems(idx):
        if section == 'default':
            continue
        elif section == 'refguide':
            out += ['   single: %s' % (', '.join(references))]
        else:
            out += ['   %s: %s' % (section, ','.join(references))]
    return out