docstr: Asserts that the two config dictionaries are equal.
  
  This method is used to compare keras Model and Layer configs. It provides
  the ability to exclude the keys we don't want compared.
  
  Args:
    expected_config: Config which we expect.
    actual_config: Actual received config.
    exclude_keys: List of keys to not check against.
docstr_tok: ["Asserts","that","the","two","config","dictionaries","are","equal",".","This","method","is","used","to","compare","keras","Model","and","Layer","configs",".","It","provides","the","ability","to","exclude","the","keys","we","do","n't","want","compared",".","Args",":","expected_config",":","Config","which","we","expect",".","actual_config",":","Actual","received","config",".","exclude_keys",":","List","of","keys","to","not","check","against","."]
code: def _assert_config(
      self, expected_config, actual_config, exclude_keys=None
  ):
      """Asserts that the two config dictionaries are equal.
  
      This method is used to compare keras Model and Layer configs. It provides
      the ability to exclude the keys we don't want compared.
  
      Args:
        expected_config: Config which we expect.
        actual_config: Actual received config.
        exclude_keys: List of keys to not check against.
      """
      expected_config = expected_config.copy()
      actual_config = actual_config.copy()
  
      def _remove_keys(config):
          """Removes all exclude_keys (including nested) from the dict."""
          for key in exclude_keys:
              if key in config:
                  del config[key]
  
          for _, v in config.items():
              if isinstance(v, dict):
                  _remove_keys(v)
  
              if isinstance(v, list):
                  for item in v:
                      if isinstance(item, dict):
                          _remove_keys(item)
  
      if exclude_keys:
          _remove_keys(expected_config)
          _remove_keys(actual_config)
  
      self.assertDictEqual(expected_config, actual_config)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.quantization.keras import utils
  from tensorflow_model_optimization.python.core.quantization.keras.graph_transformations import model_transformer
  from tensorflow_model_optimization.python.core.quantization.keras.graph_transformations import transforms
label_desc: Use image node_id 6 for calling the ModelTransformerTest obj's underlying member method code with example usage: obj._assert_config(expected_config, actual_config, exclude_keys) without return types