<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def format_with_handler(self, query_result, return_type):
 """ Uses the callable handler to format the query result to the desired return type :param query_result: the result value of our query :param return_type: desired return type :return: type, the query value as the return type requested """

        handler = self.get_handler(type(query_result), return_type)
        return handler.format_result(query_result)