code: def test_convert_to_date_tensor_list_of_datetimes(self):
      inputs = [
          datetime.date(2018, 5, 4),
          datetime.date(2042, 11, 22),
          datetime.date(1947, 8, 15),
      ]
      date_tensor = dateslib.convert_to_date_tensor(inputs)
      y, m, d = [2018, 2042, 1947], [5, 11, 8], [4, 22, 15]
      self.assert_date_tensor_components(date_tensor, y, m, d, None)
  
imports: import datetime
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tf_quant_finance.datetime import test_data
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 3 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_convert_to_date_tensor_list_of_datetimes() without return types