code: def positive_definite(x):
      shp = tensorshape_util.as_list(x.shape)
      psd = tf.matmul(x, x, transpose_b=True) + 0.1 * tf.linalg.eye(
          shp[-1], batch_shape=shp[:-2]
      )
      return symmetric(psd)
  
imports: import contextlib
  import os
  import re
  import traceback
  import unittest
  import hypothesis
  from hypothesis.extra import numpy
  import hypothesis.strategies
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import dtype_util
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.util.deferred_tensor import DeferredTensor
label_desc: Use image node_id 38 for calling a global function with example usage: positive_definite(x) and returns: symmetric