code: def test_date_to_list(date_str, datetime_format, expected_list):
      preprocessing_parameters = None
      assert (
          date_feature.DateInputFeature.date_to_list(
              date_str, datetime_format, preprocessing_parameters
          )
          == expected_list
      )
  
imports: from copy import deepcopy
  from datetime import date, datetime
  from typing import Any, List
  import pytest
  import torch
  from dateutil.parser import parse
  from ludwig.constants import ENCODER_OUTPUT, FILL_WITH_CONST, MISSING_VALUE_STRATEGY
  from ludwig.features import date_feature
  from ludwig.features.date_feature import DateInputFeature
  from ludwig.schema.features.date_feature import DateInputFeatureConfig
  from ludwig.schema.utils import load_config_with_kwargs
  from ludwig.types import FeatureConfigDict
  from ludwig.utils.date_utils import create_vector_from_datetime_obj
  from ludwig.utils.misc_utils import merge_dict
  from ludwig.utils.torch_utils import get_torch_device
label_desc: Use image node_id 3 for calling a global function with example usage: test_date_to_list(date_str, datetime_format, expected_list) without return types