code: def test_all_duplicates(self):
      result = quantiles_util.generate_quantiles_histogram(
          quantiles=np.array([1, 1, 1], dtype=np.float32),
          cumulative_counts=np.array([2, 2, 2]),
      )
      expected_result = text_format.Parse(
          """
          buckets {
            low_value: 1.0
            high_value: 1.0
            sample_count: 1.0
          }
          buckets {
            low_value: 1.0
            high_value: 1.0
            sample_count: 1.0
          }
          type: QUANTILES
          """,
          statistics_pb2.Histogram(),
      )
      _assert_buckets_almost_equal(
          self, result.buckets, expected_result.buckets
      )
  
imports: from typing import List
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from tensorflow_data_validation.utils import quantiles_util
  from google.protobuf import text_format
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 2 for calling the QuantilesUtilTest obj's underlying member method code with example usage: obj.test_all_duplicates() without return types