code: def test_infer_type_explicit_date():
      field = FieldInfo(
          name="foo",
          distinct_values=["1", "2"],
          num_distinct_values=2,
          dtype=DATE,
      )
      assert infer_type(field, 0, ROW_COUNT) == DATE
  
file_path: ludwig/tests/ludwig/utils/automl/test_type_inference.py
imports: import random
  import pytest
  from ludwig.constants import AUDIO, BINARY, CATEGORY, DATE, IMAGE, NUMBER, TEXT
  from ludwig.data.dataset_synthesizer import generate_string
  from ludwig.utils.automl.field_info import FieldInfo
  from ludwig.utils.automl.type_inference import infer_type, should_exclude
label_desc: Use image node_id 2 for calling a global function with example usage: test_infer_type_explicit_date() without return types