def convert_from(self, element, base):
        """Convert ``element`` to ``self.dtype`` given the base domain. """
        if base.alias is not None:
            method = "from_" + base.alias
        else:
            method = "from_" + base.__class__.__name__

        _convert = getattr(self, method)

        if _convert is not None:
            result = _convert(element, base)

            if result is not None:
                return result

        raise CoercionFailed((element, type(element), base, self) % "can't convert %s of type %s from %s to %s")
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/domain.py/Domain.convert_from/swapped operands of `%`