class_docstr: Represents a tensor of time periods.
class_docstr_tok: ["Represents","a","tensor","of","time","periods","."]
code: def _apply_sequence_to_tensor_op(cls, op_fn, tensor_wrappers):
      q = op_fn([t.quantity() for t in tensor_wrappers])
      period_type = tensor_wrappers[0].period_type()
      if not all(
          t.period_type() == period_type for t in tensor_wrappers[1:]
      ):
          raise ValueError(
              "Combined PeriodTensors must have the same PeriodType"
          )
      return PeriodTensor(q, period_type)
  
imports: import tensorflow.compat.v2
  from tf_quant_finance.datetime import constants
  from tf_quant_finance.datetime import tensor_wrapper
label_desc: Use image node_id 9 for calling the PeriodTensor obj's underlying member method code with example usage: obj._apply_sequence_to_tensor_op(cls, op_fn, tensor_wrappers) and returns: PeriodTensor