code: def test_convert_to_date_tensor_ordinals(self):
      inputs = [1, 2, 3, 4, 5]
      inputs2 = tf.constant(inputs)
      date_tensor = dateslib.convert_to_date_tensor(inputs)
      date_tensor2 = dateslib.convert_to_date_tensor(inputs2)
      self.assert_date_tensor_components(
          date_tensor,
          [1, 1, 1, 1, 1],
          [1, 1, 1, 1, 1],
          [1, 2, 3, 4, 5],
          inputs,
      )
  
      self.assert_date_tensor_components(
          date_tensor2,
          [1, 1, 1, 1, 1],
          [1, 1, 1, 1, 1],
          [1, 2, 3, 4, 5],
          inputs,
      )
  
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 4 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_convert_to_date_tensor_ordinals() without return types