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 `split_dict_py_tf` works with nested dictionary.
docstr_tok: ["Tests","that","`","split_dict_py_tf","`","works","with","nested","dictionary","."]
code: def test_split_dict_py_tf_nested(self):
      """Tests that `split_dict_py_tf` works with nested dictionary."""
      const_1, const_2 = tf.constant(1.0), tf.constant(2.0)
      test_dict = {
          "nested": {"a": 1.0, "b": const_1},
          "py": "string",
          "tf": const_2,
      }
      expected_d_py = {
          "nested": {
              "a": 1.0,
          },
          "py": "string",
      }
      expected_d_tf = {"nested": {"b": const_1}, "tf": const_2}
      d_py, d_tf = py_utils.split_dict_py_tf(test_dict)
      self.assertDictEqual(expected_d_py, d_py)
      self.assertDictEqual(expected_d_tf, d_tf)
  
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 3 for calling the SplitMergeDictTest obj's underlying member method code with example usage: obj.test_split_dict_py_tf_nested() without return types