def METHOD_NAME(self):
    class OptOut:
        """Object that opts out of __array_ufunc__."""
        __array_ufunc__ = None
        def __add__(self, other):
            return self
        def __radd__(self, other):
            return self
    array_like = ArrayLike(1)
    opt_out = OptOut()
    # supported operations
    assert_(array_like + opt_out is opt_out)
    assert_(opt_out + array_like is opt_out)
    # not supported
    with assert_raises(TypeError):
        # don't use the Python default, array_like = array_like + opt_out
        array_like += opt_out
    with assert_raises(TypeError):
        array_like - opt_out
    with assert_raises(TypeError):
        opt_out - array_like