code: def _is_empty(self, response):
          
          # Assume ClientResponse has "body", and otherwise it's a requests.Response
          content = response.text() if hasattr(response, "body") else response.text
          if not content:
              return True
          try:
              return not json.loads(content)
          except ValueError:
              raise DeserializationError(
                  "Error occurred in deserializing the response body.")
docs: Check if response body contains meaningful content.
  
          :rtype: bool
          :raises: DeserializationError if response body contains invalid json data.