code: def test_comparisons_contrast_default(mtcars, caplog):
      model, idata = mtcars
      caplog.set_level("INFO", logger="__bambi_interpret__")
  
      # List of values with no unspecified covariates
      plot_comparisons(
          model, idata, "hp", conditional=None, average_by="am"
      )
  
      contrast_msg = "Default computed for contrast variable: hp"
      interpret_log_msgs = [r.message for r in caplog.records]
  
      assert contrast_msg in interpret_log_msgs
      assert len(caplog.records) == 1
  
file_path: bambi/tests/test_interpret_messages.py
imports: import bambi
  import pandas
  import pytest
  from bambi.interpret import plot_comparisons, plot_predictions, plot_slopes
label_desc: Use image node_id 5 for calling a global function with example usage: test_comparisons_contrast_default(mtcars, caplog) without return types