code: def test_running_state(app: Page):
      """Test that st.status renders a spinner when in running state."""
      running_status = app.get_by_test_id("stExpander").nth(0)
      # Check if it has a spinner icon:
      expect(
          running_status.get_by_test_id("stExpanderIconSpinner")
      ).to_be_visible()
  
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction
label_desc: Use image node_id 2 for calling a global function with example usage: test_running_state(app) without return types