code: def choose_file_or_dir():
      
      question = QMessageBox(QMessageBox.Information, 'Open Dataset',
                             'Do you want to open a file or a directory?')
      dir_button = question.addButton('Directory', QMessageBox.YesRole)
      file_button = question.addButton('File', QMessageBox.NoRole)
      question.addButton(QMessageBox.Cancel)
      question.exec_()
      response = question.clickedButton()
  
      if response == dir_button:
          return 'dir'
      elif response == file_button:
          return 'file'
      else:
          return 'abort'
docs: Create a simple message box to see if the user wants to open dir or file
  
      Returns
      -------
      str
          'dir' or 'file' or 'abort'