code: def fill_dataset_tree(self, tree, data_sets):
          
  
          tree.model().removeRows(0, tree.model().rowCount())
          for index, (time, script) in enumerate(data_sets.items()):
              name = script.settings['tag']
              type = script.name
  
              item_time = QtGui.QStandardItem(str(time))
              item_name = QtGui.QStandardItem(str(name))
              item_type = QtGui.QStandardItem(str(type))
  
              item_time.setSelectable(False)
              item_time.setEditable(False)
              item_type.setSelectable(False)
              item_type.setEditable(False)
  
              tree.model().appendRow([item_time, item_name, item_type])
docs: fills the tree with data sets where datasets is a dictionary of the form
          Args:
              tree:
              data_sets: a dataset
  
          Returns: