code: def test_generate_quantiles_histogram(self):
      result = quantiles_util.generate_quantiles_histogram(
          quantiles=np.array(
              [1.0, 60.0, 120.0, 180.0, 240.0, 300.0], dtype=np.float32
          ),
          cumulative_counts=np.array([1, 60, 120, 180, 240, 300]),
      )
      expected_result = text_format.Parse(
          """
          buckets {
            low_value: 1.0
            high_value: 60.0
            sample_count: 60.0
          }
          buckets {
            low_value: 60.0
            high_value: 120.0
            sample_count: 60.0
          }
          buckets {
            low_value: 120.0
            high_value: 180.0
            sample_count: 60.0
          }
          buckets {
            low_value: 180.0
            high_value: 240.0
            sample_count: 60.0
          }
          buckets {
            low_value: 240.0
            high_value: 300.0
            sample_count: 60.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 1 for calling the QuantilesUtilTest obj's underlying member method code with example usage: obj.test_generate_quantiles_histogram() without return types