def add_override(self, override=None, **kwargs):
        """Adds a tax override instance to this document"""
        if kwargs:
            override = TaxOverride(**kwargs)
        if not isinstance(override, TaxOverride):
            raise AvalaraTypeException(AvalaraException.CODE_BAD_OVERRIDE, '%r is not a %r' % (override, TaxOverride))
        self.TaxOverride = override
dataset/ETHPy150Open activefrequency/pyavatax/pyavatax/base.py/Document.add_override/original