class_docstr: Rational field based on :ref:`MPQ`.
  
  This will be used as :ref:`QQ` if ``gmpy`` and ``gmpy2`` are not
  installed. Elements are instances of :ref:`MPQ`.
class_docstr_tok: ["Rational","field","based","on",":","ref",":","`","MPQ","`",".","This","will","be","used","as",":","ref",":","`","QQ","`","if","``","gmpy","``","and","``","gmpy2","``","are","not","installed",".","Elements","are","instances","of",":","ref",":","`","MPQ","`","."]
docstr: Convert a GMPY `mpz` object to `dtype`. 
docstr_tok: ["Convert","a","GMPY","`","mpz","`","object","to","`","dtype","`","."]
code: def from_ZZ_gmpy(K1, a, K0):
      """Convert a GMPY `mpz` object to `dtype`."""
      return PythonRational(PythonInteger(a))
  
file_path: sympy/sympy/polys/domains/pythonrationalfield.py
imports: from sympy.polys.domains.groundtypes import PythonInteger, PythonRational, SymPyRational
  from sympy.polys.domains.rationalfield import RationalField
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 7 for calling the PythonRationalField obj's underlying member method code with example usage: obj.from_ZZ_gmpy(K1, a, K0) and returns: PythonRational