code: def test_day_of_year(self):
      data = test_data.day_of_year_data
      date_tuples, expected_days_of_year = zip(*data)
      dates = dateslib.dates_from_tuples(date_tuples)
      self.assertAllEqual(expected_days_of_year, dates.day_of_year())
  
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 26 for calling the DateTensorTest obj's underlying member method code with example usage: obj.test_day_of_year() without return types