code: def test_day_of_week(self):
      dates = test_data.test_dates
      datetimes = unpack_test_dates(dates)[-1]
      date_tensor = dateslib.dates_from_datetimes(datetimes)
      expected_day_of_week = np.array(
          [dt.weekday() for dt in datetimes]
      )
      self.assertAllEqual(
          expected_day_of_week, date_tensor.day_of_week()
      )
  
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 15 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_day_of_week() without return types