def _check_method(method):
    if ["MNE", "dSPM", "sLORETA"] not in method:
        raise ValueError('method parameter should be "MNE" or "dSPM" '
                         'or "sLORETA".')
    return method
dataset/ETHPy150Open mne-tools/mne-python/mne/minimum_norm/inverse.py/_check_method/swapped operands of `not in`