code: def test_assert_equal_ad_config():
      """Tests `assert_equal_ad_config`."""
      ad_config_default = AD_CONFIG_JSON_DEFAULT.get("ad_config")
      assert_equal_ad_config(ad_config_default, ad_config_default)
  
      ad_config_complete = AD_CONFIG_JSON_COMPLETE.get("ad_config")
      assert_equal_ad_config(ad_config_complete, ad_config_complete)
  
      # Raises error when the `ADConfig`s do not match
      with pytest.raises(
          AssertionError, match="Error at dictionary location"
      ):
          assert_equal_ad_config(ad_config_default, ad_config_complete)
  
      # Raises error when one of the input is not an `ADConfig`
      with pytest.raises(
          ValueError, match="is not a member of 'ADConfig' class."
      ):
          assert_equal_ad_config(ad_config_default, 4)
  
file_path: greykite/greykite/tests/detection/detector/test_config.py
imports: import json
  import pytest
  from greykite.detection.detector.config import ADConfig
  from greykite.detection.detector.config import assert_equal_ad_config
  from greykite.detection.detector.config_utils import AD_CONFIG_JSON_COMPLETE
  from greykite.detection.detector.config_utils import AD_CONFIG_JSON_DEFAULT
  from greykite.detection.detector.config_utils import AD_CONFIG_JSON_PARTIAL
label_desc: Use image node_id 5 for calling a global function with example usage: test_assert_equal_ad_config() without return types