code: def test_dup_invert():
      R, x = ring("x", QQ)
      assert R.dup_invert(2 * x, x**2 - 16) == QQ(1, 32) * x
  
file_path: sympy/sympy/polys/tests/test_euclidtools.py
imports: from sympy.polys.rings import ring
  from sympy.polys.domains import ZZ, QQ, RR
  from sympy.polys.specialpolys import f_polys, dmp_fateman_poly_F_1, dmp_fateman_poly_F_2, dmp_fateman_poly_F_3
label_desc: Use image node_id 2 for calling a global function with example usage: test_dup_invert() without return types