class_docstr: A class for arbitrary expressions. 
class_docstr_tok: ["A","class","for","arbitrary","expressions","."]
docstr: Convert a Python ``Fraction`` object to ``dtype``. 
docstr_tok: ["Convert","a","Python","``","Fraction","``","object","to","``","dtype","``","."]
code: def from_QQ(K1, a, K0):
      """Convert a Python ``Fraction`` object to ``dtype``."""
      return K1(K0.to_sympy(a))
  
imports: from sympy.core import sympify, SympifyError
  from sympy.polys.domains.domainelement import DomainElement
  from sympy.polys.domains.characteristiczero import CharacteristicZero
  from sympy.polys.domains.field import Field
  from sympy.polys.domains.simpledomain import SimpleDomain
  from sympy.polys.polyutils import PicklableWithSlots
  from sympy.utilities import public
label_desc: Use image node_id 8 for calling the ExpressionDomain obj's underlying member method code with example usage: obj.from_QQ(K1, a, K0) and returns: K1