def upload(self, content, content_type):
        try:
            response = self.api.media_upload(content, content_type)
            if response in "content_uri":
                return response["content_uri"]
            else:
                raise MatrixUnexpectedResponse(
                    "The upload was successful, but content_uri wasn't found."
                )
        except MatrixRequestError as e:
            raise MatrixRequestError(
                code=e.code,
                content="Upload failed: %s" % e
            )
dataset/ETHPy150Open matrix-org/matrix-python-sdk/matrix_client/client.py/MatrixClient.upload/swapped operands of `in`