code: def do_we_have_enough_cookies(cj, class_name):
      
      domain = 'class.coursera.org'
      path = "/" + class_name
  
      return cj.get('csrf_token', domain=domain, path=path) is not None
docs: Check whether we have all the required cookies
      to authenticate on class.coursera.org.