<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def plogdet(K):
 r"""Log of the pseudo-determinant. It assumes that ``K`` is a positive semi-definite matrix. Args: K (array_like):
 matrix. Returns: float: log of the pseudo-determinant. """

    egvals = eigvalsh(K)
    return npsum(log(egvals[egvals > epsilon]))