code: def test_df_to_records() -> None:
      from superset.db_engine_specs import BaseEngineSpec
      from superset.result_set import SupersetResultSet
  
      data = [("a1", "b1", "c1"), ("a2", "b2", "c2")]
      cursor_descr: DbapiDescription = [
          (column, "string", None, None, None, None, False)
          for column in ("a", "b", "c")
      ]
      results = SupersetResultSet(data, cursor_descr, BaseEngineSpec)
      df = results.to_pandas_df()
  
      assert df_to_records(df) == [
          {"a": "a1", "b": "b1", "c": "c1"},
          {"a": "a2", "b": "b2", "c": "c2"},
      ]
  
file_path: superset/tests/unit_tests/dataframe_test.py
imports: from datetime import datetime
  import pytest
  from pandas import Timestamp
  from pandas._libs.tslibs import NaT
  from superset.dataframe import df_to_records
  from superset.superset_typing import DbapiDescription
label_desc: Use image node_id 1 for calling a global function with example usage: test_df_to_records() without return types