class_docstr: Tests for methods in piecewise module.
class_docstr_tok: ["Tests","for","methods","in","piecewise","module","."]
docstr: Tests find_interval_index is correct with one half-open interval.
docstr_tok: ["Tests","find_interval_index","is","correct","with","one","half-open","interval","."]
code: def test_find_interval_index_one_interval(self):
      """Tests find_interval_index is correct with one half-open interval."""
      result = self.evaluate(
          piecewise.find_interval_index([1.0], [1.0])
      )
      self.assertAllEqual(result, [0])
  
      result = self.evaluate(
          piecewise.find_interval_index([0.0], [1.0])
      )
      self.assertAllEqual(result, [-1])
  
      result = self.evaluate(
          piecewise.find_interval_index([2.0], [1.0])
      )
      self.assertAllEqual(result, [0])
  
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 Piecewise obj's underlying member method code with example usage: obj.test_find_interval_index_one_interval() without return types