code: def _macaroons_for_domain(cookies, domain):
      '''Return any macaroons from the given cookie jar that
      apply to the given domain name.'''
      req = urllib.request.Request('https://' + domain + '/')
      cookies.add_cookie_header(req)
      return httpbakery.extract_macaroons(reqf _macaroons_for_domain(cookies, domain):
      '''Return any macaroons from the given cookie jar that
      apply to the given domain name.'''
      req = urllib.request.Request('https://' + domain + '/')
      cookies.add_cookie_header(req)
      return httpbakery.extract_macaroons(req)
docs: Return any macaroons from the given cookie jar that
      apply to the given domain name.