code: def test_read_excel_all_sheets(
      read_spreadsheet: Callable[..., dict[str, pl.DataFrame]],
      source: str,
      params: dict[str, str],
      request: pytest.FixtureRequest,
  ) -> None:
      spreadsheet_path = request.getfixturevalue(source)
      frames = read_spreadsheet(
          spreadsheet_path,
          sheet_id=0,
          **params,
      )
      assert len(frames) == (
          4 if str(spreadsheet_path).endswith("ods") else 5
      )
  
      expected1 = pl.DataFrame({"hello": ["Row 1", "Row 2"]})
      expected2 = pl.DataFrame({"world": ["Row 3", "Row 4"]})
      expected3 = pl.DataFrame(
          {
              "cardinality": [1, 3, 15, 30, 150, 300],
              "rows_by_key": [
                  0.05059,
                  0.04478,
                  0.04414,
                  0.05245,
                  0.05395,
                  0.05677,
              ],
              "iter_groups": [
                  0.04806,
                  0.04223,
                  0.04774,
                  0.04864,
                  0.0572,
                  0.06945,
              ],
          }
      )
      assert_frame_equal(frames["test1"], expected1)
      assert_frame_equal(frames["test2"], expected2)
      if params.get("engine") == "openpyxl":
          # TODO: flag that trims trailing all-null rows?
          assert_frame_equal(frames["test3"], expected3)
          assert_frame_equal(frames["test4"].drop_nulls(), expected3)
  
imports: from __future__ import annotations
  import warnings
  from collections import OrderedDict
  from datetime import date, datetime
  from io import BytesIO
  from typing import TYPE_CHECKING, Any, Callable, Literal
  import pytest
  import polars
  import polars.selectors
  from polars.exceptions import NoDataError, ParameterCollisionError
  from polars.testing import assert_frame_equal
label_desc: Use image node_id 9 for calling a global function with example usage: test_read_excel_all_sheets(read_spreadsheet, source, params, request) without return types