def METHOD_NAME(note_idx):
    index = note_idx[0]
    note = note_idx[1]
    note_dict = {
        'id': note.id,
        'url': note.url,
        'date': '{dt:%B} {dt.day}'.format(dt=note.activated),
        'activated': note.activated,
        'content': note.content,
        'type': note.type,
        'isRead': (index > 4 or note.pk in read_notifications),
    }
    return note_dict