class_docstr: Test GeneralSpace works on a Symmetric Matrix.
class_docstr_tok: ["Test","GeneralSpace","works","on","a","Symmetric","Matrix","."]
code: def tangent_basis(self, x):
      # Tangent vectors are just the embedded unit vectors that result in
      # symmetric matrices.
      # This tests a constant bases, and that broadcasting works appropriately.
      return spaces.DenseBasis(
          np.array(
              [
                  [[1.0, 0.0], [0.0, 0.0]],
                  [[0.0, 1.0], [1.0, 0.0]],
                  [[0.0, 0.0], [0.0, 1.0]],
              ]
          ).astype(np.float32)
      )
  
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.bijectors import reshape
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import scale_matvec_tril
  from tensorflow_probability.python.bijectors import transform_diagonal
  from tensorflow_probability.python.experimental.tangent_spaces import spaces
  from tensorflow_probability.python.experimental.tangent_spaces import spaces_test_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 3 for calling the GeneralSpaceSymmetricMatrixTest obj's underlying member method code with example usage: obj.tangent_basis(x) and returns: spaces