code: def perform_addition_test(self, data, period_type):
      dates_from, quantities, expected_dates = [], [], []
      for date_from, quantity, expected_date in data:
          dates_from.append(date_from)
          quantities.append(quantity)
          expected_dates.append(expected_date)
  
      datetimes = unpack_test_dates(dates_from)[-1]
      date_tensor = dateslib.dates_from_datetimes(datetimes)
      period_tensor = dateslib.PeriodTensor(quantities, period_type)
      result_date_tensor = date_tensor + period_tensor
  
      y, m, d, o, _ = unpack_test_dates(expected_dates)
      self.assert_date_tensor_components(result_date_tensor, y, m, d, o)
  
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 21 for calling the DateTensorTest obj's underlying member method code with example usage: obj.perform_addition_test(data, period_type) without return types