code: def test_schema_inference_from_rows() -> None:
      # these have to upcast to float
      assert pl.from_records([[1, 2.1, 3], [4, 5, 6.4]]).to_dict(
          as_series=False
      ) == {
          "column_0": [1.0, 2.1, 3.0],
          "column_1": [4.0, 5.0, 6.4],
      }
      assert pl.from_dicts(
          [{"a": 1, "b": 2}, {"a": 3.1, "b": 4.5}]
      ).to_dict(as_series=False) == {
          "a": [1.0, 3.1],
          "b": [2.0, 4.5],
      }
  
imports: from __future__ import annotations
  from collections import OrderedDict
  from datetime import date, timedelta
  from typing import Any, Iterator, Mapping
  import pytest
  import polars
  from polars.testing import assert_frame_equal, assert_series_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_schema_inference_from_rows() without return types