code: def test_custom_input(self):
      # Expected results computed using `nelson-seigel-svensson` package
      interpolation_times = [5.0, 10.0, 15.0, 20.0]
      s_p = tff.rates.nelson_seigel_svensson.SvenssonParameters(
          beta_0=0.05,
          beta_1=-0.01,
          beta_2=0.3,
          beta_3=0.02,
          tau_1=1.5,
          tau_2=20.0,
      )
  
      output = self.evaluate(
          tff.rates.nelson_seigel_svensson.interpolate(
              interpolation_times, s_p
          )
      )
  
      expected_output = [0.12531409, 0.09667101, 0.08360796, 0.0770343]
  
      np.testing.assert_allclose(
          output, expected_output, atol=1e-5, rtol=1e-5
      )
  
file_path: tf-quant-finance/tf_quant_finance/rates/nelson_seigel_svensson/nelson_seigel_svensson_interpolation_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 2 for calling the NelsonSvenssonInterpolationTest obj's underlying member method code with example usage: obj.test_custom_input() without return types