code: def test_total_weight_preserved_fuzz(self):
      for _ in range(5):
          for size in range(1, 20):
              bounds, counts = _random_cdf(size)
              for num_bins in range(1, 40):
                  standard_hist = (
                      quantiles_util.generate_equi_width_histogram(
                          bounds,
                          counts,
                          bounds.min(),
                          bounds.max(),
                          num_bins,
                          0.0,
                      )
                  )
                  np.testing.assert_almost_equal(
                      _total_sample_count(standard_hist), counts[-1]
                  )
  
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 3 for calling the GenerateEquiWidthBucketsTest obj's underlying member method code with example usage: obj.test_total_weight_preserved_fuzz() without return types