'Compute power spectrum density (PSD) using a multi-taper method.
Parameters
epochs_data : array, shape (n_epochs, n_channels, n_times)
The data.
y : array, shape (n_epochs,)
The label for each epoch
Returns
self : instance of PSDEstimator
returns the modified instance'

def fit(self, epochs_data, y):

    if (not isinstance(epochs_data, np.ndarray)):
        raise ValueError(('epochs_data    should    be    of    type    ndarray    (got    %s).' % type(epochs_data)))
    return self
