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`` to a SymPy object. 
docstr_tok: ["Convert","``","a","``","to","a","SymPy","object","."]
code: def to_sympy(self, a):
      """Convert ``a`` to a SymPy object."""
      return SymPyRational(int(gmpy_numer(a)), int(gmpy_denom(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 3 for calling the GMPYRationalField obj's underlying member method code with example usage: obj.to_sympy(a) and returns: SymPyRational