def METHOD_NAME(parent=None,
                    title="Select a dataset",
                    pick_frames=False):
  style = 0
  if (pick_frames):
    style |= RSTBX_SELECT_IMAGE_IDS
  dlg = SelectDatasetDialog(
    parent=parent,
    title=title,
    style=style)
  dataset = frames = None
  if (dlg.ShowModal() == wx.ID_OK):
    dataset, frames = dlg.GetDataset()
  wx.CallAfter(dlg.Destroy)
  if (pick_frames):
    return dataset, frames
  else :
    return dataset