code: def _ending_tester(self, value_range, clock, expected):
      with tf.Session() as session:
          tf_pick = tf_pick_value_from_range(
              value_range, clock=self.clock_ph
          )
  
          def run_pick(_, c):
              return session.run(tf_pick, feed_dict={self.clock_ph: c})
  
          is_int = isinstance(value_range.start, int)
          for pick, int_type, float_type in [
              (pick_value_from_range, int, float),
              (run_pick, np.int32, np.float32),
          ]:
              result = pick(value_range, clock)
              self.assertEqual(result, expected)
              self.assertTrue(
                  isinstance(result, int_type if is_int else float_type)
              )
  
imports: import unittest
  import numpy
  import tensorflow
  from deepspeech_training.util.helpers import ValueRange, get_value_range, pick_value_from_range, tf_pick_value_from_range
label_desc: Use image node_id 2 for calling the TestPickValueFromFixedRange obj's underlying member method code with example usage: obj._ending_tester(value_range, clock, expected) and returns: session