def is_request_from_mobile_web_view(request):
 for mobile_path in PATHS_ACCESSED_BY_MOBILE_WITH_SESSION_COOKIES:
  if re.match(mobile_path, request.path):
   return True
 return False

def is_request_from_mobile_web_view ( request ) : for mobile_path in PATHS_ACCESSED_BY_MOBILE_WITH_SESSION_COOKIES : if re . match ( mobile_path , request . path ) : return True return False
returns whether the given request was made by an open edx mobile web view using a session cookie .