code: def test_expander_session_state_set(app: Page):
      """Test that session state updates are propagated to expander content"""
      main_expanders = app.locator(".main [data-testid='stExpander']")
      expect(main_expanders).to_have_count(5)
  
      # Show the Number Input
      num_input = main_expanders.nth(2).locator(".stNumberInput input")
      num_input.fill("10")
      num_input.press("Enter")
  
      # Hide the Number Input
      main_expanders.nth(2).locator(EXPANDER_HEADER_IDENTIFIER).click()
  
      app.get_by_text("Update Num Input").click()
      wait_for_app_run(app)
  
      app.get_by_text("Print State Value").click()
      wait_for_app_run(app)
  
      text_elements = app.locator("[data-testid='stText']")
      expect(text_elements).to_have_count(2)
      text_elements = text_elements.all_inner_texts()
      texts = [text.strip() for text in text_elements]
  
      expected = [
          "0.0",
          "0.0",
      ]
      assert texts == expected
  
file_path: streamlit/e2e_playwright/st_expander_test.py
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 6 for calling a global function with example usage: test_expander_session_state_set(app) without return types