<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_response(self, response):
 """ Extracts JSON data from the response :param requests.Response response: The original response from :mod:`requests` :return: The response's JSON content :rtype: :class:`dict` if ``preserve_order`` is ``False`` :rtype: :class:`collections.OrderedDict` if ``preserve_order`` is ``True`` """


        return response.json(object_pairs_hook=collections.OrderedDict if self.preserve_order else None)