code: def test_cat_frequency_with_custom_colors(plot_type):
      test_data = generate_cat_data_series(
          pd.Series({"A": 10, "B": 10, "C": 10})
      )
      custom_colors = {
          "gold": "#ffd700",
          "b": "#0000ff",
          "#FF796C": "#ff796c",
      }
      profile = generate_report(test_data)
      profile.config.plot.cat_freq.colors = list(custom_colors.keys())
      profile.config.plot.cat_freq.type = plot_type
      html_report = profile.to_html()
      for c, hex_code in custom_colors.items():
          assert (
              f"fill: {hex_code}" in html_report
          ), f"Missing color code of {c}"
  
file_path: ydata-profiling/tests/unit/test_report_options.py
imports: import pandas
  import pytest
  from ydata_profiling import ProfileReport
label_desc: Use image node_id 7 for calling a global function with example usage: test_cat_frequency_with_custom_colors(plot_type) without return types