def func(self, other):
    if _disables_array_ufunc(other):
        return NotImplemented
    return ufunc(self, other)
def func(self, other):
    if _disables_array_ufunc(other):
        return NotImplemented
    return ufunc(self, other)