code: def test_date_feature_formats(date_df, request, ray_cluster_2cpu):
      df = request.getfixturevalue(date_df)
  
      config = {
          INPUT_FEATURES: [
              {
                  NAME: "date_feature",
                  TYPE: DATE,
                  PREPROCESSING: {
                      MISSING_VALUE_STRATEGY: FILL_WITH_CONST,
                      "fill_value": "1970-01-01 00:00:00",
                  },
              }
          ],
          OUTPUT_FEATURES: [{NAME: "binary_feature", TYPE: BINARY}],
          TRAINER: {EPOCHS: 2},
          BACKEND: {TYPE: RAY, "processor": {TYPE: "dask"}},
      }
  
      fill_value = create_vector_from_datetime_obj(
          parse("1970-01-01 00:00:00")
      )
  
      model = LudwigModel(config)
      preprocessed = model.preprocess(df)
  
      # Because parsing errors are suppressed, we want to ensure that the data was preprocessed correctly. Sample data is
      # drawn from the current time, so the recorded years should not match the fill value's year.
      for date in (
          preprocessed.training_set.to_df().compute().iloc[:, 0].values
      ):
          assert date[0] != fill_value[0]
  
      for date in (
          preprocessed.validation_set.to_df()
          .compute()
          .iloc[:, 0]
          .values
      ):
          assert date[0] != fill_value[0]
  
      for date in (
          preprocessed.test_set.to_df().compute().iloc[:, 0].values
      ):
          assert date[0] != fill_value[0]
  
file_path: ludwig/tests/integration_tests/test_date_feature.py
imports: import datetime
  import time
  import pandas
  import pytest
  from dateutil.parser import parse
  from ludwig.api import LudwigModel
  from ludwig.constants import BACKEND, BINARY, DATE, EPOCHS, FILL_WITH_CONST, INPUT_FEATURES, MISSING_VALUE_STRATEGY, NAME, OUTPUT_FEATURES, PREPROCESSING, RAY, TRAINER, TYPE
  from ludwig.utils.date_utils import create_vector_from_datetime_obj
label_desc: Use image node_id 4 for calling a global function with example usage: test_date_feature_formats(date_df, request, ray_cluster_2cpu) without return types