<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _process_all_any(self, func, **kwargs):
 """Calculates if any or all the values are true. Return: A new QueryCompiler object containing boolean values or boolean. """

        axis = kwargs.get("axis", 0)
        axis = 0 if axis is None else axis
        kwargs["axis"] = axis
        builder_func = self._build_mapreduce_func(func, **kwargs)
        return self._full_reduce(axis, builder_func)