def _check_method(method):
    interface_members = [m[0] for m in getmembers(_AbstractConEstBase)
                         if not m[0].startswith('_')]
    method_members = [m[0] for m in getmembers(method)
                      if not m[0].startswith('_')]

    for member in interface_members:
        if member not in method_members:
            return False, member
    return True, None
Test if a method implements the required interface
dataset/ETHPy150Open mne-tools/mne-python/mne/connectivity/spectral.py/_check_method