code: def assert_symmetric(matrix):
      matrix_t = tf.linalg.matrix_transpose(matrix)
      return with_dependencies(
          [assert_util.assert_near(matrix, matrix_t)], matrix
      )
  
imports: import functools
  import hashlib
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import assert_util
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import prefer_static
  from tensorflow_probability.python.internal import reparameterization
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow.python.util import tf_inspect
label_desc: Use image node_id 15 for calling a global function with example usage: assert_symmetric(matrix) and returns: with_dependencies