code: def logdet_symm(m, check_symm=False):
      """
      Return log(det(m)) asserting positive definiteness of m.
  
      Parameters
      ----------
      m : array_like
          2d array that is positive-definite (and symmetric)
  
      Returns
      -------
      logdet : float
          The log-determinant of m.
      """
      from scipy import linalg
  
      if check_symm:
          if not np.all(
              m == m.T
          ):  # would be nice to short-circuit check
              raise ValueError("m is not symmetric.")
      c, _ = linalg.cho_factor(m, lower=True)
      return 2 * np.sum(np.log(c.diagonal()))
  
imports: import numpy
label_desc: Use image node_id 1 for calling a global function with example usage: logdet_symm(m, check_symm) and returns: unknown