code: def test_PythonRational__float__():
      assert float(QQ(-1, 2)) == -0.5
      assert float(QQ(1, 2)) == 0.5
  
file_path: sympy/sympy/polys/tests/test_pythonrational.py
imports: from sympy.polys.domains import PythonRational
  from sympy.testing.pytest import raises
label_desc: Use image node_id 4 for calling a global function with example usage: test_PythonRational__float__() without return types