code: def strip_path_session_id(path):
      '''Strip session ID from URL path.'''
      for pattern in SESSION_ID_PATH_PATTERNS:
          match = pattern.match(path)
          if match:
              path = match.group(1) + match.group(3)
  
      return patf strip_path_session_id(path):
      '''Strip session ID from URL path.'''
      for pattern in SESSION_ID_PATH_PATTERNS:
          match = pattern.match(path)
          if match:
              path = match.group(1) + match.group(3)
  
      return path
docs: Strip session ID from URL path.