Check if matrix and its mediation matrix are compliant.

        It means that number of dependencies for each (line, column) is either
        0 if the mediation matrix (line, column) is 0, or >0 if the mediation
        matrix (line, column) is 1.

        Args:
            dsm (:class:`DesignStructureMatrix`): the DSM to check.

        Returns:
            bool: True if compliant, else False

def check(self, dsm, **kwargs):
        """
        Check if matrix and its mediation matrix are compliant.

        It means that number of dependencies for each (line, column) is either
        0 if the mediation matrix (line, column) is 0, or >0 if the mediation
        matrix (line, column) is 1.

        Args:
            dsm (:class:`DesignStructureMatrix`): the DSM to check.

        Returns:
            bool: True if compliant, else False
        """
        # generate complete_mediation_matrix according to each category
        med_matrix = CompleteMediation.generate_mediation_matrix(dsm)
        return CompleteMediation.matrices_compliance(dsm, med_matrix)