docs: def find_cookies_for_class(cookies_file, class_name):
      """
      Return a RequestsCookieJar containing the cookies for
      .coursera.org and class.coursera.org found in the given cookies_file.
      """
  
      path = "/" + class_name
  
      def cookies_filter(c):
          return c.domain == ".coursera.org" \
              or (c.domain == "class.coursera.org" and c.path == path)
  
      cj = get_cookie_jar(cookies_file)
  
      new_cj = requests.cookies.RequestsCookieJar()
      for c in filter(cookies_filter, cj):
          new_cj.set_cookie(c)
  
      return new_cj