class_docstr: Tests for methods in linear_interpolation module.
docstr: Tests linear interpolation when x_data is not increasing.
docstr_tok: ["Tests","linear","interpolation","when","x_data","is","not","increasing","."]
code: def test_linear_interpolation_x_data_not_increasing(
      self, optimize_for_tpu
  ):
      """Tests linear interpolation when x_data is not increasing."""
      x = [[0, 1.5, 4], [4, 5.5, 8]]
      x_data = [[1, 2, 3], [5, 7, 6]]
      y_data = [[0, 2, 4], [1, 2, 3]]
  
      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.float32,
              )
          )
  
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 10 for calling the LinearInterpolation obj's underlying member method code with example usage: obj.test_linear_interpolation_x_data_not_increasing(optimize_for_tpu) without return types