def test_in1d():
    a = np.arange(10)
    b = a[a % 2 == 0]
    assert_equal(_in1d(a, b).sum(), 5)
Test numpy.in1d() replacement
dataset/ETHPy150Open mne-tools/mne-python/mne/tests/test_fixes.py/test_in1d