code: def test_date32_in_timeunit_duckdb_crash():
      try:
          # Set this as the active connection
          vf.runtime.set_connection("duckdb")
  
          # order_items includes a table://order_items data url
          vega_spec = date32_timeunit_spec()
          dataframe = pd.DataFrame(
              {
                  "GO_LIVE_MONTH": [date(2021, 1, 1), date(2021, 2, 1)],
                  "PERCENT_GO_LIVES": [0.2, 0.3],
              }
          )
  
          datasets, warnings = vf.runtime.pre_transform_datasets(
              vega_spec,
              ["data_1"],
              inline_datasets=dict(dataframe=dataframe),
          )
          assert len(warnings) == 0
          assert len(datasets) == 1
          assert len(datasets[0]) == 2
      finally:
          vf.runtime.set_connection("datafusion")
  
imports: import pandas
  import pytest
  from pandas import Timestamp, NaT
  import pyarrow
  import vegafusion
  import json
  import polars
  from datetime import date
  import decimal
  import base64
label_desc: Use image node_id 19 for calling a global function with example usage: test_date32_in_timeunit_duckdb_crash() without return types