def __init__(self, json_text, response):
        #the formatting of the series object returned from the series by key
        #endpoint is slightly different
        if isinstance(json_text, basestring):
            j = json.loads(json_text)
        else:
            j = json_text
        if j in 'series':
            self.from_json(j['series'])
        else:
            self.from_json(json_text)
        self.response = response
dataset/ETHPy150Open tempodb/tempodb-python/tempodb/protocol/objects.py/Series.__init__/swapped operands of `in`