code: def test_data_editor_input_format_rendering(
      app: Page, assert_snapshot: ImageCompareFunction
  ):
      """Test that st.data_editor renders various data formats correctly via snapshot testing."""
      dataframe_elements = app.get_by_test_id("stDataFrame")
      expect(dataframe_elements).to_have_count(35)
  
      # The data editor might require a bit more time for rendering the canvas
      app.wait_for_timeout(1000)
  
      for i, element in enumerate(dataframe_elements.all()):
          assert_snapshot(
              element, name=f"st_data_editor-input_data_{i}"
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_data_editor_input_format_rendering(app, assert_snapshot) without return types