class_docstr: Integer ring based on Python's ``int`` type.
  
  This will be used as :ref:`ZZ` if ``gmpy`` and ``gmpy2`` are not
  installed. Elements are instances of the standard Python ``int`` type.
docstr: Convert GMPY's ``mpq`` to Python's ``int``. 
docstr_tok: ["Convert","GMPY","'s","``","mpq","``","to","Python","'s","``","int","``","."]
code: def from_QQ_gmpy(K1, a, K0):
      """Convert GMPY's ``mpq`` to Python's ``int``."""
      if a.denom() == 1:
          return PythonInteger(a.numer())
  
imports: from sympy.core.numbers import int_valued
  from sympy.polys.domains.groundtypes import PythonInteger, SymPyInteger, sqrt, factorial, python_gcdex, python_gcd, python_lcm
  from sympy.polys.domains.integerring import IntegerRing
  from sympy.polys.polyerrors import CoercionFailed
  from sympy.utilities import public
label_desc: Use image node_id 10 for calling the PythonIntegerRing obj's underlying member method code with example usage: obj.from_QQ_gmpy(K1, a, K0) and returns: PythonInteger