def METHOD_NAME(data, roi=None, mdh=None, events=None, origName = None):
    from PYME.IO.dataExporter import exportersByExtension
    if roi is None:
        roi = [[0,data.shape[0]], [0,data.shape[1]], [0,data.shape[2]]]
    roi = roi + [[0, data.shape[3]],]
    dlg = ExportDialog(None, roi)
    succ = dlg.ShowModal()
    if (succ == wx.ID_OK):
        filename = _getFilename()
        if filename is None:
            dlg.Destroy()
            return
        ext = '*' + os.path.splitext(filename)[1]
        exp = exportersByExtension[ext]()
        exp.Export(data, filename, dlg.GetXSlice(), dlg.GetYSlice(), dlg.GetZSlice(), mdh, events, origName, tslice=dlg.GetTSlice())
    dlg.Destroy(