code: def sympify_pythonrational(arg):
      return Rational(arg.numerator, arg.denominator)
  
imports: from sympy.core.numbers import Rational
  from sympy.core.sympify import _sympy_converter
  from sympy.utilities import public
  from sympy.external.pythonmpq import PythonMPQ
label_desc: Use image node_id 1 for calling a global function with example usage: sympify_pythonrational(arg) and returns: Rational