code: def _condition(X):
      """
      Condition number (https://en.wikipedia.org/wiki/Condition_number)
      used for diagnostics.
  
      NOTE: this formulation is only defined for symmetric positive definite
      matrices (which covariances should be, and what we're using this for)
  
      Parameters
      ----------
      X: tf.Tensor
          Symmetric tensor to compute condition number of
  
      """
      s = tf.linalg.svd(X, compute_uv=False)
      return tf.reduce_max(input_tensor=s) / tf.reduce_min(
          input_tensor=s
      )
  
file_path: brainiak/brainiak/matnormal/matnormal_likelihoods.py
imports: import tensorflow
  from tensorflow import linalg
  from .utils import scaled_I
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: _condition(X) and returns: unknown