code: def jacobi_poly(n, a, b, x=None, polys=False):
      r"""Generates the Jacobi polynomial `P_n^{(a,b)}(x)`.
  
      Parameters
      ==========
  
      n : int
          Degree of the polynomial.
      a
          Lower limit of minimal domain for the list of coefficients.
      b
          Upper limit of minimal domain for the list of coefficients.
      x : optional
      polys : bool, optional
          If True, return a Poly, otherwise (default) return an expression.
      """
      return named_poly(
          n, dup_jacobi, None, "Jacobi polynomial", (x, a, b), polys
      )
  
imports: from sympy.core.symbol import Dummy
  from sympy.polys.densearith import dup_mul, dup_mul_ground, dup_lshift, dup_sub, dup_add
  from sympy.polys.domains import ZZ, QQ
  from sympy.polys.polytools import named_poly
  from sympy.utilities import public
label_desc: Use image node_id 2 for calling a global function with example usage: jacobi_poly(n, a, b, x, polys) and returns: named_poly