class_docstr: Tests for methods in piecewise module.
class_docstr_tok: ["Tests","for","methods","in","piecewise","module","."]
docstr: Tests find_interval_index is correct in the general case.
docstr_tok: ["Tests","find_interval_index","is","correct","in","the","general","case","."]
code: def test_find_interval_index_last_interval_is_closed(self):
      """Tests find_interval_index is correct in the general case."""
      result = piecewise.find_interval_index(
          [3.0, 4.0], [2.0, 3.0], last_interval_is_closed=True
      )
      self.assertAllEqual(result, [0, 1])
  
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 4 for calling the Piecewise obj's underlying member method code with example usage: obj.test_find_interval_index_last_interval_is_closed() without return types