code: def test_deterministic_sampler(self, p, values, expected_kept):
      sampler = sampling_utils.ValueSampler(p)
      kept = sum([sampler.keep(v) for v in values])
      self.assertEqual(expected_kept, kept)
  
file_path: pipelinedp/tests/sampling_utils_test.py
imports: from absl.testing import absltest
  from absl.testing import parameterized
  import pipeline_dp.sampling_utils
label_desc: Use image node_id 4 for calling the SamplingUtilsTest obj's underlying member method code with example usage: obj.test_deterministic_sampler(p, values, expected_kept) without return types