code: def new_annot(self):
          
          if self.parent.info.filename is None:
              msg = 'No dataset loaded'
              self.parent.statusBar().showMessage(msg)
              lg.debug(msg)
              return
  
          filename = splitext(self.parent.info.filename)[0] + '_scores.xml'
          filename, _ = QFileDialog.getSaveFileName(self, 'Create annotation file',
                                                    filename,
                                                    'Annotation File (*.xml)')
          if filename == '':
              return
  
          self.update_notes(filename, True)
docs: Action: create a new file for annotations.