def _in_any(reason, err_haystack):
    for err in err_haystack:
        if reason.find(six.text_type(err)) != -1:
            return True
    return False
Checks if any elements of the haystack are in the given reason.
dataset/ETHPy150Open openstack/taskflow/taskflow/persistence/backends/impl_sqlalchemy.py/_in_any