code: def from_tuples(year_month_day_tuples, validate=True):
      """Creates DateTensor from a sequence of year-month-day Tuples.
  
      Args:
        year_month_day_tuples: Sequence of (year, month, day) Tuples. Months are
          1-based; constants from Months enum can be used instead of ints. Days are
          also 1-based.
        validate: Whether to validate the dates.
  
      Returns:
        DateTensor object.
  
      #### Example
  
      ```python
      date_tensor = tff.datetime.dates_from_tuples([(2015, 4, 15), (2017, 12, 30)])
      ```
      """
      years, months, days = [], [], []
      for t in year_month_day_tuples:
          years.append(t[0])
          months.append(t[1])
          days.append(t[2])
      years = tf.constant(years, dtype=tf.int32)
      months = tf.constant(months, dtype=tf.int32)
      days = tf.constant(days, dtype=tf.int32)
      return from_year_month_day(years, months, days, validate)
  
imports: import collections.abc
  import datetime
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import date_utils
  from tf_quant_finance.datetime import periods
  from tf_quant_finance.datetime import tensor_wrapper
label_desc: Use image node_id 5 for calling a global function with example usage: from_tuples(year_month_day_tuples, validate) and returns: from_year_month_day