code: def is_pos_semi_def(X):
      """Check if all matrices are positive semi-definite (PSD).
  
      Parameters
      ----------
      X : ndarray, shape (..., n, n)
          The set of square matrices, at least 2D ndarray.
  
      Returns
      -------
      ret : boolean
          True if all matrices are positive semi-definite.
      """
      return is_square(X) and np.all(_get_eigenvals(X) >= 0.0)
  
file_path: pyRiemann/pyriemann/utils/test.py
imports: import numpy
label_desc: Use image node_id 9 for calling a global function with example usage: is_pos_semi_def(X) and returns: unknown