<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _pcca_object(T, m):
 """ Constructs the pcca object from dense or sparse Parameters T : (n, n) ndarray or scipy.sparse matrix Transition matrix m : int Number of metastable sets Returns ------- pcca : PCCA PCCA object """

    if _issparse(T):
        _showSparseConversionWarning()
        T = T.toarray()
    T = _types.ensure_ndarray(T, ndim=2, uniform=True, kind='numeric')
    return dense.pcca.PCCA(T, m)