code: def set_notebook(note_store, my_notebook, notebook_id):
          
          if notebook_id == 0:
              new_notebook = Types.Notebook()
              new_notebook.name = my_notebook
              new_notebook.defaultNotebook = False
              notebook_id = note_store.createNotebook(new_notebook).guid
          return notebook_id
docs: create a notebook