def METHOD_NAME(F,strg):
    """Given a string strg representing an element of the number field F
    as a polynomial in its generator, return the number field element.
    F is the number field (in the correct variable)
    strg is a string representing an element of F
    """
    return F(strg)