So we would do something like this inside the methods:

```Python
if isinstance(epochs, mne.Epochs):
    data = data.get_data()
else:
    data = epochs
```