code: def testGetAndMakeNontrivialBijectorFromParameters(self):
      scale_matrix = tf.Variable([[1.0, 2.0], [-1.0, 0.0]])
      d = tfp.distributions.MultivariateNormalDiag(
          loc=[1.0, 1.0], scale_diag=[2.0, 3.0], validate_args=True
      )
      b = tfp.bijectors.ScaleMatvecLinearOperator(
          scale=tf.linalg.LinearOperatorFullMatrix(matrix=scale_matrix),
          adjoint=True,
      )
      b_d = b(d)
      p = utils.get_parameters(b_d)
  
      expected_p = utils.Params(
          tfp.distributions.TransformedDistribution,
          params={
              "bijector": utils.Params(
                  tfp.bijectors.ScaleMatvecLinearOperator,
                  params={
                      "adjoint": True,
                      "scale": utils.Params(
                          tf.linalg.LinearOperatorFullMatrix,
                          params={"matrix": scale_matrix},
                      ),
                  },
              ),
              "distribution": utils.Params(
                  tfp.distributions.MultivariateNormalDiag,
                  params={
                      "validate_args": True,
                      "scale_diag": [2.0, 3.0],
                      "loc": [1.0, 1.0],
                  },
              ),
          },
      )
  
      self.compare_params(p, expected_p)
  
      b_d_recreated = utils.make_from_parameters(p)
  
      points = [
          [-1.0, -2.0],
          [0.0, 0.0],
          [3.0, -5.0],
          [5.0, 5.0],
          [1.0, np.inf],
          [-np.inf, 0.0],
      ]
      self.assertAllClose(
          b_d.log_prob(points), b_d_recreated.log_prob(points)
      )
  
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 6 for calling the UtilsTest obj's underlying member method code with example usage: obj.testGetAndMakeNontrivialBijectorFromParameters() without return types