code: def jordan_cell(eigenval, n):
      """
      Create a Jordan block:
  
      Examples
      ========
  
      >>> from sympy import jordan_cell
      >>> from sympy.abc import x
      >>> jordan_cell(x, 4)
      Matrix([
      [x, 1, 0, 0],
      [0, x, 1, 0],
      [0, 0, x, 1],
      [0, 0, 0, x]])
      """
  
      return Matrix.jordan_block(size=n, eigenvalue=eigenval)
  
imports: import random
  from sympy.core.basic import Basic
  from sympy.core.singleton import S
  from sympy.core.symbol import Symbol
  from sympy.core.sympify import sympify
  from sympy.functions.elementary.trigonometric import cos, sin
  from sympy.utilities.decorator import doctest_depends_on
  from sympy.utilities.exceptions import sympy_deprecation_warning
  from sympy.utilities.iterables import is_sequence
  from .exceptions import ShapeError
  from .decompositions import _cholesky, _LDLdecomposition
  from .matrixbase import MatrixBase
  from .repmatrix import MutableRepMatrix, RepMatrix
  from .solvers import _lower_triangular_solve, _upper_triangular_solve
label_desc: Use image node_id 18 for calling a global function with example usage: jordan_cell(eigenval, n) and returns: Matrix