code: def test_valid_quantiles():
      """
      Tests generate_equal_height_histogram returns correct histogram.
      """
      quantiles = list(range(11))
      actual_histogram = (
          histogram_generator.generate_equal_height_histogram(
              quantiles=quantiles, num_buckets=5
          )
      )
      expected_histogram = text_format.Parse(
          """
          buckets {
              low_value: 0.0
              high_value: 2.0
          }
          buckets {
              low_value: 2.0
              high_value: 4.0
          }
          buckets {
              low_value: 4.0
              high_value: 6.0
          }
          buckets {
              low_value: 6.0
              high_value: 8.0
          }
          buckets {
              low_value: 8.0
              high_value: 10.0
          }
          type: QUANTILES
          """,
          facet_feature_statistics_pb2.Histogram(),
      )
      assert_histogram(expected_histogram, actual_histogram)
  
file_path: mlflow/tests/recipes/cards/test_histogram_generator.py
imports: import pytest
  from google.protobuf import text_format
  from mlflow.protos import facet_feature_statistics_pb2
  from mlflow.recipes.cards import histogram_generator
label_desc: Use image node_id 3 for calling a global function with example usage: test_valid_quantiles() without return types