code: def test_interpolation_two_intervals(self):
      dtype = tf.float64
      interval_times = tf.constant([0.25, 0.5], dtype=dtype)
      interval_values = tf.constant([0.05, 0.051], dtype=dtype)
      test_times = tf.constant([0.25, 0.5], dtype=dtype)
      actual, integrated_actual = self.evaluate(
          monotone_convex.interpolate(
              test_times, interval_values, interval_times
          )
      )
      expected = [0.0505, 0.05125]
      np.testing.assert_allclose(actual, expected)
      integrated_expected = [0.0, 0.01275]
      np.testing.assert_allclose(integrated_actual, integrated_expected)
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import test_util
  from tf_quant_finance.rates.hagan_west import monotone_convex
label_desc: Use image node_id 3 for calling the MonotoneConvexTest obj's underlying member method code with example usage: obj.test_interpolation_two_intervals() without return types