code: def test_calls_callback_on_change(app: Page):
      """Test that it correctly calls the callback on change."""
      radio_widget = app.get_by_test_id("stRadio").nth(11)
  
      radio_widget.locator('label[data-baseweb="radio"]').first.click(
          force=True
      )
      wait_for_app_run(app)
  
      expect(app.get_by_test_id("stMarkdown").nth(11)).to_have_text(
          "value 12: female",
          use_inner_text=True,
      )
      expect(app.get_by_test_id("stMarkdown").nth(12)).to_have_text(
          "radio changed: True",
          use_inner_text=True,
      )
  
      # Change different date input to trigger delta path change
      first_date_input_field = app.get_by_test_id("stRadio").first
      first_date_input_field.locator(
          'label[data-baseweb="radio"]'
      ).last.click(force=True)
      wait_for_app_run(app)
  
      expect(app.get_by_test_id("stMarkdown").first).to_have_text(
          "value 1: male", use_inner_text=True
      )
  
      # Test if value is still correct after delta path change
      expect(app.get_by_test_id("stMarkdown").nth(11)).to_have_text(
          "value 12: female",
          use_inner_text=True,
      )
      expect(app.get_by_test_id("stMarkdown").nth(12)).to_have_text(
          "radio changed: False",
          use_inner_text=True,
      )
  
imports: from playwright.sync_api import Page, expect
  from e2e_playwright.conftest import ImageCompareFunction, wait_for_app_run
label_desc: Use image node_id 4 for calling a global function with example usage: test_calls_callback_on_change(app) without return types