code: def translate(geom, xoff=0.0, yoff=0.0, zoff=0.0):
      r"""Returns a translated geometry shifted by offsets along each dimension.
  
      The general 3D affine transformation matrix for translation is:
  
          / 1  0  0 xoff \
          | 0  1  0 yoff |
          | 0  0  1 zoff |
          \ 0  0  0   1  /
      """
      if geom.is_empty:
          return geom
  
      # fmt: off
      matrix = (1.0, 0.0, 0.0,
                0.0, 1.0, 0.0,
                0.0, 0.0, 1.0,
                xoff, yoff, zoff)
      # fmt: on
      return affine_transform(geom, matrix)
  
file_path: shapely/shapely/affinity.py
imports: from math import cos, pi, sin, tan
  import numpy
  import shapely
label_desc: Use image node_id 6 for calling a global function with example usage: translate(geom, xoff, yoff, zoff) and returns: affine_transform, geom