code: def test_df_to_records_NaT_type() -> None:
      from superset.db_engine_specs import BaseEngineSpec
      from superset.result_set import SupersetResultSet
  
      data = [
          (NaT,),
          (Timestamp("2023-01-06 20:50:31.749000+0000", tz="UTC"),),
      ]
      cursor_descr: DbapiDescription = [
          (
              "date",
              "timestamp with time zone",
              None,
              None,
              None,
              None,
              False,
          )
      ]
      results = SupersetResultSet(data, cursor_descr, BaseEngineSpec)
      df = results.to_pandas_df()
  
      assert df_to_records(df) == [
          {"date": None},
          {"date": "2023-01-06 20:50:31.749000+00:00"},
      ]
  
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 2 for calling a global function with example usage: test_df_to_records_NaT_type() without return types