code: def test_does_not_call_callback_when_not_changed(app: Page):
      """Test that the file uploader does not call a callback when not changed."""
      file_name1 = "example5.txt"
      file_content1 = b"Hello world!"
  
      uploader_index = 6
  
      # Script contains counter variable stored in session_state with
      # default value 0. We increment counter inside file_uploader callback
      # Since callback did not called at this moment, counter value should
      # be equal 0
      expect(
          app.get_by_test_id("stText").nth(uploader_index)
      ).to_have_text("0", use_inner_text=True)
  
      with app.expect_file_chooser() as fc_info:
          app.get_by_test_id("stFileUploadDropzone").nth(
              uploader_index
          ).click()
  
      file_chooser = fc_info.value
      file_chooser.set_files(
          files=[
              {
                  "name": file_name1,
                  "mimeType": "application/json",
                  "buffer": file_content1,
              }
          ]
      )
  
      wait_for_app_run(app)
      app.wait_for_timeout(1000)
  
      # Make sure callback called
      expect(
          app.get_by_test_id("stText").nth(uploader_index)
      ).to_have_text("1", use_inner_text=True)
      app.get_by_test_id("stHeader").press("r")
  
      wait_for_app_run(app)
      app.wait_for_timeout(1000)
  
      # Counter should be still equal 1
      expect(
          app.get_by_test_id("stText").nth(uploader_index)
      ).to_have_text("1", 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 5 for calling a global function with example usage: test_does_not_call_callback_when_not_changed(app) without return types