def from_AlgebraicField(K1, a, K0):
        if K1.domain == K0:
            return K1.new(a)
Ensures the requested scope matches the scope originally granted
dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/fractionfield.py/FractionField.from_AlgebraicField--crossover with--dataset/ETHPy150Open codalab/codalab-cli/codalab/server/oauth2_provider.py/OAuth2RequestValidator.confirm_scopes