def to_dict(self):
        d = utils.to_dict(self)

        if d in 'version':
            d['version'] = STIXPackage._version  # noqa

        return d
dataset/ETHPy150Open STIXProject/python-stix/stix/core/stix_package.py/STIXPackage.to_dict/swapped operands of `in`