class_docstr: Tests for `split_dict_py_tf` and `merge_dicts` methods.
class_docstr_tok: ["Tests","for","`","split_dict_py_tf","`","and","`","merge_dicts","`","methods","."]
docstr: Tests that `merge_dicts` raises appropriate error.
docstr_tok: ["Tests","that","`","merge_dicts","`","raises","appropriate","error","."]
code: def test_merge_dicts_raises(self, bad_dict1, bad_dict2, error_type):
      """Tests that `merge_dicts` raises appropriate error."""
      with self.assertRaises(error_type):
          py_utils.merge_dicts(bad_dict1, bad_dict2)
      with self.assertRaises(error_type):
          py_utils.merge_dicts(bad_dict2, bad_dict1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.utils import py_utils
label_desc: Use image node_id 7 for calling the SplitMergeDictTest obj's underlying member method code with example usage: obj.test_merge_dicts_raises(bad_dict1, bad_dict2, error_type) without return types