code: def create_tree_view(self, model=None):
          
          tree_view = Gtk.TreeView()
          if model is not None:
              tree_view.set_model(model)
          return tree_view
docs: Function creates a tree_view with model