<reponame>Kwentar/FEDOT<filename>fedot/core/composer/constraint.py<gh_stars>0
from fedot.core.chains.chain import Chain
from fedot.core.chains.chain_validation import validate


def constraint_function(chain: Chain):
    try:
        validate(chain)
        return True
    except ValueError:
        return False

from fedot.core.chains.chain import Chain
from fedot.core.chains.chain_validation import validate


def constraint_function(chain: Chain):
    try:
        validate(chain)
        return True
    except ValueError:
        return False