code: def test_year_month_day_to_ordinal(self):
      date_tuples = test_data.test_dates
      expected = np.array(
          [
              datetime.date(y, m, d).toordinal()
              for y, m, d in date_tuples
          ],
          dtype=np.int32,
      )
      dates_np = np.array(date_tuples)
      years, months, days = (
          dates_np[:, 0],
          dates_np[:, 1],
          dates_np[:, 2],
      )
      actual = date_utils.year_month_day_to_ordinal(years, months, days)
      self.assertAllEqual(expected, actual)
  
file_path: tf-quant-finance/tf_quant_finance/datetime/date_utils_test.py
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 2 for calling the DateUtilsTest obj's underlying member method code with example usage: obj.test_year_month_day_to_ordinal() without return types