def METHOD_NAME(eeg):
    """**Convert MNE Raw or Epochs object to a dictionary**
    Parameters
    ----------
    eeg : Union[mne.io.Raw, mne.Epochs]
        Raw or Epochs M/EEG data from MNE.
    See Also
    --------
    mne_to_df
    Returns
    ----------
    dict
        A dict containing all epochs identifiable by the 'Epoch' column, which time axis
        is stored in the 'Time' column.
    Examples
    ---------
    .. ipython:: python
      import neurokit2 as nk
      import mne
      # Raw objects
      eeg = nk.mne_data("filt-0-40_raw")
      nk.mne_to_dict(eeg)
      # Epochs objects
      eeg = nk.mne_data("epochs")
      nk.mne_to_dict(eeg)
      # Evoked objects
      eeg = nk.mne_data("evoked")
      nk.mne_to_dict(eeg)
    """
    return _mne_convert(eeg, to_what="dict")