def _try_to_serialize_response(self, resp):
        s = self._store["serializer"]
        if [204, 205] in resp.status_code:
            return

        if resp.headers.get("content-type", None) and resp.content:
            content_type = resp.headers.get("content-type").split(";")[0].strip()

            try:
                stype = s.get_serializer(content_type=content_type)
            except exceptions.SerializerNotAvailable:
                return resp.content

            if type(resp.content) == bytes:
                try:
                    encoding = requests.utils.guess_json_utf(resp.content)
                    return stype.loads(resp.content.decode(encoding))
                except:
                    return resp.content
            return stype.loads(resp.content)
        else:
            return resp.content
dataset/ETHPy150Open samgiles/slumber/slumber/__init__.py/Resource._try_to_serialize_response/swapped operands of `in`