code: def create_vector_from_datetime_obj(datetime_obj):
      yearday = (
          datetime_obj.toordinal()
          - date(datetime_obj.year, 1, 1).toordinal()
          + 1
      )
  
      midnight = datetime_obj.replace(
          hour=0, minute=0, second=0, microsecond=0
      )
      second_of_day = (datetime_obj - midnight).seconds
  
      return [
          datetime_obj.year,
          datetime_obj.month,
          datetime_obj.day,
          datetime_obj.weekday(),
          yearday,
          datetime_obj.hour,
          datetime_obj.minute,
          datetime_obj.second,
          second_of_day,
      ]
  
file_path: ludwig/ludwig/utils/date_utils.py
imports: import time
  from datetime import date, datetime
  from typing import Union
  import numpy
  from dateutil.parser import parse, ParserError
  from ludwig.api_annotations import DeveloperAPI
label_desc: Use image node_id 1 for calling a global function with example usage: create_vector_from_datetime_obj(datetime_obj) and returns: list