code: def _pcca_object(T, m):
      
      if _issparse(T):
          _showSparseConversionWarning()
          T = T.toarray()
      T = _types.ensure_ndarray(T, ndim=2, uniform=True, kind='numeric')
      return dense.pcca.PCCA(T, m)
docs: 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