def endEvent(self):
        if self.type == ARRAY:
            return JSONEvent(self, END_ARRAY, arrayIndex=self.arrayIndex,
                             arrayLength=self.arrayLength)
        elif self.type == OBJECT:
            return JSONEvent(self, END_OBJECT, arrayIndex=self.arrayIndex)
        elif self.type == FIELD and (OBJECT, ARRAY) not in self.valueType:
            return JSONEvent(self, FIELD_VALUE, self.value, self.valueType)
dataset/ETHPy150Open Teradata/PyTd/teradata/pulljson.py/JSONNode.endEvent/swapped operands of `not in`