<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parse_resource(self, response):
 """Assuming this response is a resource, use the deserialization callback to parse it. If body is empty, assuming no resource to return. """

        self._raise_if_bad_http_status_and_method(response)
        if not self._is_empty(response):
            self.resource = self._deserialize(response)
        else:
            self.resource = None