class_docstr: Tests for methods in linear_interpolation module.
docstr: Tests incompatible `x_data` and `y_data`.
docstr_tok: ["Tests","incompatible","`","x_data","`","and","`","y_data","`","."]
code: def test_linear_interpolation_unequal_lengths_xys(
      self, optimize_for_tpu
  ):
      """Tests incompatible `x_data` and `y_data`."""
      x = [1, 2]
      x_data = [-1, 2, 6, 8, 18]
      y_data = [10, -1, -5, 7, 9, 20]
      with self.assertRaises(
          (tf.errors.InvalidArgumentError, ValueError)
      ):
          self.evaluate(
              tff.math.interpolation.linear.interpolate(
                  x,
                  x_data,
                  y_data,
                  validate_args=True,
                  optimize_for_tpu=optimize_for_tpu,
                  dtype=tf.float64,
              )
          )
  
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 5 for calling the LinearInterpolation obj's underlying member method code with example usage: obj.test_linear_interpolation_unequal_lengths_xys(optimize_for_tpu) without return types