def set_mouse_handler_for_range(self, x_min, x_max, y_min, y_max, handler=None):
        for x, y in product(range(x_min, x_max), range(y_min, y_max)):
            self.mouse_handlers[x,y] = handler
This is the error calculation function that gets called by :py:meth:`BaseErrorMeasure.get_error`.
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/layout/mouse_handlers.py/MouseHandlers.set_mouse_handler_for_range--crossover with--dataset/ETHPy150Open T-002/pycast/pycast/errors/meanabsolutepercentageerror.py/MeanAbsolutePercentageError._calculate