class_docstr: Represents a tensor of dates.
class_docstr_tok: ["Represents","a","tensor","of","dates","."]
code: def _apply_op(self, op_fn):
      o, y, m, d = (
          op_fn(t)
          for t in (
              self._ordinals,
              self._years,
              self._months,
              self._days,
          )
      )
      return DateTensor(o, y, m, d)
  
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 25 for calling the DateTensor obj's underlying member method code with example usage: obj._apply_op(op_fn) and returns: DateTensor