def test_one_dim_odd_input(self):
    x = [1., 5., 3., 2., 4.]
    for q in [0, 10.1, 25.1, 49.9, 50.1, 50.01, 89, 100]:
      expected_percentile = np.percentile(
          x, q=q, interpolation=self._interpolation)
      with self.test_session():
        pct = sample_stats.percentile(x, q=q, interpolation=self._interpolation)
        self.assertAllEqual((), pct.get_shape())
        self.assertAllClose(expected_percentile, pct.eval())