code: def test_date_to_list_numeric(
      timestamp: Any,
      datetime_format: str,
      expected_list: List[int],
      fill_value: str,
      request,
  ):
      """Test that numeric datetime formats are converted correctly.
  
      Currently, we support int, float, and string representations of POSIX timestamps in seconds and milliseconds. Valid
      timestamps should be converted to datetime lists by `luwdig.utils.date_utils.create_vector_from_datetime_object`.
      If a string format is provided, it should be ignored.
  
      Args:
          timestamp: Input to be converted to a date vector
          datetime_format: Optional format string, should be ignored under the hood with these timestamps.
          expected_list: The expected output of `DateFeatureMixin.date_to_list`
          fill_value: Date to be used as fallback
          request: pytest request fixture
      """
      expected_result = request.getfixturevalue(expected_list)
  
      # The default fill value is `datetime.now`, for testing we override this to be a constant.
      preprocessing_parameters = {
          MISSING_VALUE_STRATEGY: FILL_WITH_CONST,
          "fill_value": fill_value,
      }
  
      # No exception should ever be raised from `date_to_list` due to a parsing error. The expected behavior is to fall
      # back to the fill value.
      dt = date_feature.DateInputFeature.date_to_list(
          timestamp, datetime_format, preprocessing_parameters
      )
      assert dt == expected_result
  
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 7 for calling a global function with example usage: test_date_to_list_numeric(timestamp, datetime_format, expected_list, fill_value, request) without return types