code: def test_to_datetime_execution(setup):
      # scalar
      r = to_datetime(1490195805, unit="s")
  
      result = r.execute().fetch(
          extra_config={"check_dtypes": False, "check_shape": False}
      )
      expected = pd.to_datetime(1490195805, unit="s")
      assert pd.to_datetime(result) == expected
  
      # test list like
      raw = ["3/11/2000", "3/12/2000", "3/13/2000"]
      t = tensor(raw, chunk_size=2)
      r = to_datetime(t, infer_datetime_format=True)
  
      result = r.execute().fetch()
      expected = pd.to_datetime(raw, infer_datetime_format=True)
      pd.testing.assert_index_equal(result, expected)
  
      # test series
      raw_series = pd.Series(raw)
      s = Series(raw_series, chunk_size=2)
      r = to_datetime(s)
  
      result = r.execute().fetch()
      expected = pd.to_datetime(raw_series)
      pd.testing.assert_series_equal(result, expected)
  
      # test DataFrame
      raw_df = pd.DataFrame(
          {"year": [2015, 2016], "month": [2, 3], "day": [4, 5]}
      )
      df = DataFrame(raw_df, chunk_size=(1, 2))
      r = to_datetime(df)
  
      result = r.execute().fetch()
      expected = pd.to_datetime(raw_df)
      pd.testing.assert_series_equal(result, expected)
  
      # test Index
      raw_index = pd.Index([1, 2, 3])
      s = Index(raw_index, chunk_size=2)
      r = to_datetime(s)
  
      result = r.execute().fetch()
      expected = pd.to_datetime(raw_index)
      pd.testing.assert_index_equal(result, expected)
  
      # test raises == 'ignore'
      raw = ["13000101"]
      r = to_datetime(raw, format="%Y%m%d", errors="ignore")
      result = r.execute().fetch()
      expected = pd.to_datetime(raw, format="%Y%m%d", errors="ignore")
      pd.testing.assert_index_equal(result, expected)
  
      # test unit
      r = to_datetime([1490195805], unit="s")
      result = r.execute().fetch()
      expected = pd.to_datetime([1490195805], unit="s")
      pd.testing.assert_index_equal(result, expected)
  
      # test origin
      r = to_datetime(
          [1, 2, 3], unit="D", origin=pd.Timestamp("1960-01-01")
      )
      result = r.execute().fetch()
      expected = pd.to_datetime(
          [1, 2, 3], unit="D", origin=pd.Timestamp("1960-01-01")
      )
      pd.testing.assert_index_equal(result, expected)
  
imports: import pandas
  from ....None import dataframe
  from ....tensor import tensor
  from ....tests.core import require_cudf
  from ...None import to_datetime, Series, DataFrame, Index
label_desc: Use image node_id 1 for calling a global function with example usage: test_to_datetime_execution(setup) without return types