@staticmethod
def _units_from_X(X):
    """
        Get unit_ids from bst X, or generate them from ndarray X.

        Returns
        -------
        n_units :
        unit_ids :
        """
    raise NotImplementedError
