code: def create_note(note_store, note, trigger_id, data):
          
          # create the note !
          try:
              created_note = note_store.createNote(note)
              sentence = str('note %s created') % created_note.guid
              logger.debug(sentence)
              return True
          except EDAMSystemException as e:
              return error(trigger_id, data, e)
          except EDAMUserException as e:
              if e.errorCode == EDAMErrorCode.ENML_VALIDATION:
                  sentence = "Data ignored due to validation error : err {code} {msg}".format(code=e.errorCode,
                                                                                              msg=e.parameter)
                  logger.warning(sentence)
                  update_result(trigger_id, msg=sentence, status=True)
                  return True
          except Exception as e:
              logger.critical(e)
              update_result(trigger_id, msg=e, status=False)
              return False
docs: create a note
              :param note_store Evernote instance
              :param note
              :param trigger_id id of the trigger
              :param data to save or to put in cache
              :type note_store: Evernote Instance
              :type note: Note instance
              :type trigger_id: int
              :type data: dict
              :return boolean
              :rtype boolean