'Updates the note with `note_id(str)` by the `note_info(dict)` to the
stub EdxNotes service.'

def update_note(self, note_id, note_info):

    note = self.filter_by_id(self.notes, note_id)
    if note:
        note[0].update(note_info)
        return note
    else:
        return None
