class_docstr: Rational field based on GMPY's ``mpq`` type.
  
  This will be the implementation of :ref:`QQ` if ``gmpy`` or ``gmpy2`` is
  installed. Elements will be of type ``gmpy.mpq``.
docstr: Convert a mpmath ``mpf`` object to ``dtype``. 
docstr_tok: ["Convert","a","mpmath","``","mpf","``","object","to","``","dtype","``","."]
code: def from_RealField(K1, a, K0):
      """Convert a mpmath ``mpf`` object to ``dtype``."""
      return GMPYRational(*map(int, K0.to_rational(a)))
  
imports: from sympy.polys.domains.groundtypes import GMPYRational, SymPyRational, gmpy_numer, gmpy_denom, factorial
  from sympy.polys.domains.rationalfield import RationalField
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 10 for calling the GMPYRationalField obj's underlying member method code with example usage: obj.from_RealField(K1, a, K0) and returns: GMPYRational