code: def test_row_constructor_schema(primitive: pl.DataType) -> None:
      result = pl.DataFrame(
          data=[[1], [2], [3]],
          schema={"d": primitive},
      )
  
      assert result.dtypes == [primitive]
      assert result.to_dict(as_series=False) == {"d": [1, 2, 3]}
  
file_path: polars/py-polars/tests/unit/test_rows.py
imports: import pytest
  import polars
  from polars.exceptions import NoRowsReturnedError, TooManyRowsReturnedError
label_desc: Use image node_id 5 for calling a global function with example usage: test_row_constructor_schema(primitive) without return types