@except_500_and_return
    def get_tax(self, lat, lng, doc, sale_amount=None):
        """Performs a HTTP GET to tax/get/"""
        if doc is not None:
            if isinstance(doc, dict):
                doc = Document.from_data(doc)
            elif not isinstance(doc, Document) and sale_amount == None:
                raise AvalaraTypeException(AvalaraException.CODE_BAD_DOC, 'Please pass a document or a dictionary to create a Document')
        elif sale_amount is None:
            raise AvalaraException(AvalaraException.CODE_BAD_ARGS, 'Please pass a doc argument, or sale_amount kwarg')
        try:
            stem = '/'.join([self.VERSION, 'tax', '%.6f,%.6f' % (lat, lng), 'get'])
        except __HOLE__:
            raise AvalaraTypeException(AvalaraException.CODE_LATLNG, 'Please pass lat and lng as floats, or Decimal')
        data = {'saleamount': sale_amount} if sale_amount else {'saleamount': doc.total}
        resp = self._get(stem, data)
        self.logger.info('"GET" %s%s with: %s' % (self.url, stem, data))
        self.recorder.success(doc)
        return GetTaxResponse(resp)
dataset/ETHPy150Open activefrequency/pyavatax/pyavatax/api.py/API.get_tax