code: def test_dmp_eval_tail():
      assert dmp_eval_tail([[]], [1], 1, ZZ) == []
      assert dmp_eval_tail([[[]]], [1], 2, ZZ) == [[]]
      assert dmp_eval_tail([[[]]], [1, 2], 2, ZZ) == []
  
      assert dmp_eval_tail(f_0, [], 2, ZZ) == f_0
  
      assert dmp_eval_tail(f_0, [1, -17, 8], 2, ZZ) == 84496
      assert dmp_eval_tail(f_0, [-17, 8], 2, ZZ) == [-1409, 3, 85902]
      assert dmp_eval_tail(f_0, [8], 2, ZZ) == [
          [83, 2],
          [3],
          [302, 81, 1],
      ]
  
      assert dmp_eval_tail(f_1, [-17, 8], 2, ZZ) == [
          -136,
          15699,
          9166,
          -27144,
      ]
  
      assert dmp_eval_tail(f_2, [-12, 3], 2, ZZ) == [
          -1377,
          0,
          -702,
          -1224,
          0,
          -624,
      ]
      assert dmp_eval_tail(f_3, [-12, 3], 2, ZZ) == [
          144,
          82,
          -5181,
          -28872,
          -14868,
          -540,
      ]
  
      assert dmp_eval_tail(f_4, [25, -1], 2, ZZ) == [
          152587890625,
          9765625,
          -59605407714843750,
          -3839159765625,
          -1562475,
          9536712644531250,
          610349546750,
          -4,
          24414375000,
          1562520,
      ]
      assert dmp_eval_tail(f_5, [25, -1], 2, ZZ) == [
          -1,
          -78,
          -2028,
          -17576,
      ]
  
      assert dmp_eval_tail(f_6, [0, 2, 4], 3, ZZ) == [5040, 0, 0, 4480]
  
imports: from sympy.polys.densebasic import dup_normal, dmp_normal, dup_from_raw_dict, dmp_convert, dmp_swap
  from sympy.polys.densearith import dmp_mul_ground
  from sympy.polys.densetools import dup_clear_denoms, dmp_clear_denoms, dup_integrate, dmp_integrate, dmp_integrate_in, dup_diff, dmp_diff, dmp_diff_in, dup_eval, dmp_eval, dmp_eval_in, dmp_eval_tail, dmp_diff_eval_in, dup_trunc, dmp_trunc, dmp_ground_trunc, dup_monic, dmp_ground_monic, dup_content, dmp_ground_content, dup_primitive, dmp_ground_primitive, dup_extract, dmp_ground_extract, dup_real_imag, dup_mirror, dup_scale, dup_shift, dup_transform, dup_compose, dmp_compose, dup_decompose, dmp_lift, dup_sign_variations, dup_revert, dmp_revert
  from sympy.polys.polyclasses import ANP
  from sympy.polys.polyerrors import MultivariatePolynomialError, ExactQuotientFailed, NotReversible, DomainError
  from sympy.polys.specialpolys import f_polys
  from sympy.polys.domains import FF, ZZ, QQ, EX
  from sympy.polys.rings import ring
  from sympy.core.numbers import I
  from sympy.core.singleton import S
  from sympy.functions.elementary.trigonometric import sin
  from sympy.abc import x
  from sympy.testing.pytest import raises
label_desc: Use image node_id 10 for calling a global function with example usage: test_dmp_eval_tail() without return types