def from_sympy(self, expr):
        number = expr.evalf(n=self.dps)
        real, imag = number.as_real_imag()

        if real.is_Number and imag.is_Number:
            return self.dtype(real, imag)
        else:
            raise CoercionFailed("expected complex number, got %s" % expr)
Test an anonymous visitor sees only public groups
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/complexfield.py/ComplexField.from_sympy--crossover with--dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupListViewTest.test_anonymous_visitor_group_view_permission