def METHOD_NAME(self, req):
    assert isinstance(
        req, urllib.request.Request
    ), "Incorrect request type: %s" % type(req)
    if 'Authorization' not in req.headers:
        req.add_header('Authorization', self.auth_string)