code: def testParametersFromDictMissingNestedParamsKeyFailure(self):
      one = tf.constant(1.0)
      d = tfp.distributions.Normal(
          loc=one, scale=3.0, validate_args=True
      )
      d = tfp.bijectors.Tanh()(d)
      d = tfp.bijectors.Tanh()(d)
      p = utils.get_parameters(d)
      p_dict = utils.parameters_to_dict(p)
  
      # Add a third bijector, changing the structure of the nest.
      self.assertIn("bijectors:0", p_dict["bijector"].keys())
      self.assertIn("bijectors:1", p_dict["bijector"].keys())
      p_dict["bijector"]["bijectors:2"] = p_dict["bijector"][
          "bijectors:0"
      ]
  
      # Flattening nested params lost information about the nested structure, so
      # we can't e.g. add a new bijector in the dict and expect to put that back
      # into the bijector list when converting back.
      with self.assertRaisesRegex(
          ValueError,
          r"params_dict had keys that were not part of value.params.*"
          r"params_dict keys: \[\'bijectors:0\', \'bijectors:1\', "
          r"\'bijectors:2\'\], value.params processed keys: \[\'bijectors:0\', "
          r"\'bijectors:1\'\]",
      ):
          utils.merge_to_parameters_from_dict(p, p_dict)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  import tensorflow_probability
  from tf_agents.distributions import utils
  from tf_agents.specs import tensor_spec
label_desc: Use image node_id 8 for calling the UtilsTest obj's underlying member method code with example usage: obj.testParametersFromDictMissingNestedParamsKeyFailure() without return types