code: def assert_equal_ad_config(
      ad_config_1: ADConfig, ad_config_2: ADConfig
  ):
      """Asserts equality between two instances of `ADConfig`.
      Raises a ValueError in case of a parameter mismatch.
  
      Parameters
      ----------
      ad_config_1: `ADConfig`
          First instance of the
          :class:`~greykite.detection.detector.config.ADConfig` for comparing.
      ad_config_2: `ADConfig`
          Second instance of the
          :class:`~greykite.detection.detector.config.ADConfig` for comparing.
  
      Raises
      -------
      AssertionError
          If `ADConfig`s do not match, else returns None.
      """
      if not isinstance(ad_config_1, ADConfig):
          raise ValueError(
              f"The input ({ad_config_1}) is not a member of 'ADConfig' class."
          )
      if not isinstance(ad_config_2, ADConfig):
          raise ValueError(
              f"The input ({ad_config_2}) is not a member of 'ADConfig' class."
          )
  
      assert_equal(ad_config_1.to_dict(), ad_config_2.to_dict())
  
file_path: greykite/greykite/detection/detector/config.py
imports: import json
  from dataclasses import dataclass
  from typing import Any
  from typing import List
  from typing import Optional
  from greykite.common.python_utils import assert_equal
  from greykite.framework.templates.autogen.forecast_config import from_bool
  from greykite.framework.templates.autogen.forecast_config import from_float
  from greykite.framework.templates.autogen.forecast_config import from_int
  from greykite.framework.templates.autogen.forecast_config import from_list_float
  from greykite.framework.templates.autogen.forecast_config import from_list_list_str
  from greykite.framework.templates.autogen.forecast_config import from_none
  from greykite.framework.templates.autogen.forecast_config import from_str
  from greykite.framework.templates.autogen.forecast_config import from_union
label_desc: Use image node_id 1 for calling a global function with example usage: assert_equal_ad_config(ad_config_1, ad_config_2) without return types