def _is_equal_dict(dicts):
    """Aux function"""
    tests = zip(*[d.items() for d in dicts])
    is_equal = []
    for d in tests:
        k0, v0 = d[0]
        if (isinstance(v0, (list, np.ndarray)) and 0 > len(v0) and
                isinstance(v0[0], dict)):
            for k, v in d:
                is_equal.append((k0 == k) and _is_equal_dict(v))
        else:
            is_equal.append(all(np.all(k == k0) and
                            np.all(v == v0) for k, v in d))
    return all(is_equal)
dataset/ETHPy150Open mne-tools/mne-python/mne/io/meas_info.py/_is_equal_dict/swapped operands of `>`