code: def unpack_test_dates(dates):
      y, m, d = (
          np.array([d[i] for d in dates], dtype=np.int32)
          for i in range(3)
      )
      datetimes = [datetime.date(y, m, d) for y, m, d in dates]
      o = np.array(
          [datetime.date(y, m, d).toordinal() for y, m, d in dates],
          dtype=np.int32,
      )
      return y, m, d, o, datetimes
  
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 1 for calling a global function with example usage: unpack_test_dates(dates) and returns: y,  m,  d,  o,  datetimes