code: def request_uri(environ, include_query=True):
      """Return the full request URI, optionally including the query string"""
      url = application_uri(environ)
      from urllib.parse import quote
  
      path_info = quote(
          environ.get("PATH_INFO", ""), safe="/;=,", encoding="latin1"
      )
      if not environ.get("SCRIPT_NAME"):
          url += path_info[1:]
      else:
          url += path_info
      if include_query and environ.get("QUERY_STRING"):
          url += "?" + environ["QUERY_STRING"]
      return url
  
file_path: cpython/Lib/wsgiref/util.py
imports: import posixpath
label_desc: Use image node_id 3 for calling a global function with example usage: request_uri(environ, include_query) and returns: url