code: def _ending_tester(
      self,
      value_range,
      clock_min,
      clock_max,
      expected_min,
      expected_max,
  ):
      with self.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)
          clock_range = np.arange(
              clock_min, clock_max, (clock_max - clock_min) / 100.0
          )
          for pick, int_type, float_type in [
              (pick_value_from_range, int, float),
              (run_pick, np.int32, np.float32),
          ]:
              results = [pick(value_range, c) for c in clock_range]
              self.assertGreater(len(set(results)), 80)
              self.assertTrue(
                  all(
                      map(
                          lambda x: expected_min <= x <= expected_max,
                          results,
                      )
                  )
              )
              self.assertTrue(
                  all(
                      map(
                          lambda x: isinstance(
                              x, int_type if is_int else float_type
                          ),
                          results,
                      )
                  )
              )
  
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 TestPickValueFromRandomizedRange obj's underlying member method code with example usage: obj._ending_tester(value_range, clock_min, clock_max, expected_min, expected_max) and returns: session