code: def test_create_from_np_datetimes(self):
      dates = test_data.test_dates
      y, m, d, o, datetimes = unpack_test_dates(dates)
      np_datetimes = np.array(datetimes, dtype=np.datetime64)
      date_tensor = dateslib.dates_from_np_datetimes(np_datetimes)
      self.assert_date_tensor_components(date_tensor, y, m, d, o)
  
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 9 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_create_from_np_datetimes() without return types