def as_relational(self, symbol):
        from sympy.core.relational import Eq
        return Or(*[Eq(symbol, elem) for elem in self])
Rewrite a FiniteSet in terms of equalities and logic operators.
dataset/ETHPy150Open sympy/sympy/sympy/sets/sets.py/FiniteSet.as_relational