code: def test_intersection():
      R = QQ.old_poly_ring(x, y, z)
      # SCA, example 1.8.11
      assert R.ideal(x, y).intersect(R.ideal(y**2, z)) == R.ideal(
          y**2, y * z, x * z
      )
  
      assert R.ideal(x, y).intersect(R.ideal()).is_zero()
  
      R = QQ.old_poly_ring(x, y, z, order="ilex")
      assert R.ideal(x, y).intersect(
          R.ideal(y**2 + y**2 * z, z + z * x**3 * y)
      ) == R.ideal(y**2, y * z, x * z)
  
file_path: sympy/sympy/polys/agca/tests/test_ideals.py
imports: from sympy.polys import QQ, ilex
  from sympy.abc import x, y, z
  from sympy.testing.pytest import raises
label_desc: Use image node_id 5 for calling a global function with example usage: test_intersection() without return types