code: def normalize_response(response, request=None):
      
      if isinstance(response, Response):
          return response
      if request is not None and not isinstance(request, Request):
          request = normalize_request(request)
  
      for normalizer in RESPONSE_NORMALIZERS:
          try:
              return normalizer(response, request=request)
          except TypeError:
              continue
  
      raise ValueError("Unable to normalize the provided response")
docs: Given a response, normalize it to the internal Response class.  This also
      involves normalizing the associated request object.