code: def _assert_buckets_almost_equal(
      test: parameterized.TestCase,
      a: List[statistics_pb2.Histogram.Bucket],
      b: List[statistics_pb2.Histogram.Bucket],
  ):
      """Check if the histogram buckets are almost equal."""
      test.assertEqual(len(a), len(b))
      for i in range(len(a)):
          test.assertEqual(a[i], b[i])
          test.assertAlmostEqual(a[i].low_value, b[i].low_value)
          test.assertAlmostEqual(a[i].high_value, b[i].high_value)
          test.assertAlmostEqual(a[i].sample_count, b[i].sample_count)
  
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 a global function with example usage: _assert_buckets_almost_equal(test, a, b) without return types