code: def test_ugly(self):
      input_bps = (0, 668, 1587, 3085, 5000, 6915, 8413, 9332, 10000)
      bucket_limits = [
          -1.0,
          0.0,
          0.917246389039776,
          1.0089710279437536,
          1.7976931348623157e308,
      ]
      bucket_counts = [0.0, 896.0, 0.0, 64.0]
      assert len(bucket_counts) == len(bucket_limits) - 1
      buckets = list(
          zip(*[bucket_limits[:-1], bucket_limits[1:], bucket_counts])
      )
      vals = compressor.compress_histogram(buckets, input_bps)
      (bps, values) = zip(*vals)
      self.assertSequenceEqual(bps, input_bps)
      self.assertAlmostEqual(values[0], -1.0)
      self.assertAlmostEqual(values[1], -0.86277993701301037)
      self.assertAlmostEqual(values[2], -0.67399964077791519)
      self.assertAlmostEqual(values[3], -0.36628159533703131)
      self.assertAlmostEqual(values[4], 0.027096279842737214)
      self.assertAlmostEqual(values[5], 0.42047415502250551)
      self.assertAlmostEqual(values[6], 0.72819220046338917)
      self.assertAlmostEqual(values[7], 0.91697249669848446)
      self.assertAlmostEqual(values[8], 1.7976931348623157e308)
  
file_path: tensorboard/tensorboard/plugins/distribution/compressor_test.py
imports: import tensorflow
  from tensorboard.plugins.distribution import compressor
label_desc: Use image node_id 4 for calling the CompressorTest obj's underlying member method code with example usage: obj.test_ugly() without return types