code: def rotate(th):
      """Return the matrix to rotate a 2-D point about the origin by ``angle``.
  
      The angle is measured in radians. To Point a point about a point other
      then the origin, translate the Point, do the rotation, and
      translate it back:
  
      >>> from sympy.geometry.entity import rotate, translate
      >>> from sympy import Point, pi
      >>> rot_about_11 = translate(-1, -1)*rotate(pi/2)*translate(1, 1)
      >>> Point(1, 1).transform(rot_about_11)
      Point2D(1, 1)
      >>> Point(0, 0).transform(rot_about_11)
      Point2D(2, 0)
      """
      s = sin(th)
      rv = eye(3) * cos(th)
      rv[0, 1] = s
      rv[1, 0] = -s
      rv[2, 2] = 1
      return rv
  
imports: from __future__ import annotations
  from sympy.core.basic import Basic
  from sympy.core.containers import Tuple
  from sympy.core.evalf import EvalfMixin, N
  from sympy.core.numbers import oo
  from sympy.core.symbol import Dummy
  from sympy.core.sympify import sympify
  from sympy.functions.elementary.trigonometric import cos, sin, atan
  from sympy.matrices import eye
  from sympy.multipledispatch import dispatch
  from sympy.printing import sstr
  from sympy.sets import Set, Union, FiniteSet
  from sympy.sets.handlers.intersection import intersection_sets
  from sympy.sets.handlers.union import union_sets
  from sympy.solvers.solvers import solve
  from sympy.utilities.misc import func_name
  from sympy.utilities.iterables import is_sequence
label_desc: Use image node_id 5 for calling a global function with example usage: rotate(th) and returns: rv