def __call_stream(self, uri, params=None, method="get"):
        """Returns an stream response
        """
        try:
            resp = self.__get_response(uri, params, method, True)
            assert resp.ok
        except __HOLE__:
            raise BadRequest(resp.status_code)
        except Exception as e:
            log.error("Bad response: {}".format(e), exc_info=True)
        else:
            return resp
dataset/ETHPy150Open toloco/pyoanda/pyoanda/client.py/Client.__call_stream