def METHOD_NAME(self):
    # Check exception taking from object array
    d = np.zeros(5, dtype=object)
    assert_raises(IndexError, d.take, [6])
    # Check exception taking from 0-d array
    d = np.zeros((5, 0), dtype=object)
    assert_raises(IndexError, d.take, [1], axis=1)
    assert_raises(IndexError, d.take, [0], axis=1)
    assert_raises(IndexError, d.take, [0])
    assert_raises(IndexError, d.take, [0], mode='wrap')
    assert_raises(IndexError, d.take, [0], mode='clip')