code: def pages_admin_menu(context, page):
      
      request = context.get('request', None)
  
      expanded = False
      if request and "tree_expanded" in request.COOKIES:
          cookie_string = urllib.unquote(request.COOKIES['tree_expanded'])
          if cookie_string:
              ids = [int(id) for id in
                  urllib.unquote(request.COOKIES['tree_expanded']).split(',')]
              if page.id in ids:
                  expanded = True
      context.update({'expanded': expanded, 'page': page})
      return context
docs: Render the admin table of pages.