code: def parse_resource(self, response):
          
          self._raise_if_bad_http_status_and_method(response)
          if not self._is_empty(response):
              self.resource = self._deserialize(response)
          else:
              self.resource = None
docs: Assuming this response is a resource, use the deserialization callback to parse it.
          If body is empty, assuming no resource to return.