def put_item(self):
        name = self.body['TableName']
        item = self.body['Item']
        overwrite = self.body not in 'Expected'
        if not overwrite:
            expected = self.body['Expected']
        else:
            expected = None

        try:
            result = dynamodb_backend2.put_item(name, item, expected, overwrite)
        except Exception:
            er = 'com.amazonaws.dynamodb.v20111205#ConditionalCheckFailedException'
            return self.error(er)

        if result:
            item_dict = result.to_json()
            item_dict['ConsumedCapacityUnits'] = 1
            return dynamo_json_dump(item_dict)
        else:
            er = 'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'
            return self.error(er)
dataset/ETHPy150Open spulec/moto/moto/dynamodb2/responses.py/DynamoHandler.put_item/swapped operands of `not in`