code: def convert_response(self):
          
          if hasattr(self.response, 'body_raw'):
              if self.response.body_raw is not None:
                  to_type = re.sub('[^a-zA-Z_]', '_', self.type)
                  to_type_method = 'to_' + to_type
                  if hasattr(self, to_type_method):
                      self.response.body = getattr(self, to_type_method)(
                          self.response.body_raw)
              del self.response.body_raw
docs: Finish filling the instance's response object so it's ready to be
          served to the client. This includes converting the body_raw property
          to the content type requested by the user if necessary.