def METHOD_NAME(self):
    class SubArrayLike(ArrayLike):
        """Should take precedence over ArrayLike."""
    x = ArrayLike(0)
    y = SubArrayLike(1)
    _assert_equal_type_and_value(x + y, y)
    _assert_equal_type_and_value(y + x, y)