code: def test_translate(self):
      ls = load_wkt("LINESTRING(240 400 10, 240 300 30, 300 300 20)")
      # test default offset of 0.0
      tls = affinity.translate(ls)
      assert tls.equals(ls)
      # test all offsets
      tls = affinity.translate(ls, 100, 400, -10)
      els = load_wkt("LINESTRING(340 800 0, 340 700 20, 400 700 10)")
      assert tls.equals(els)
      # Do explicit 3D check of coordinate values
      for a, b in zip(tls.coords, els.coords):
          for ap, bp in zip(a, b):
              assert ap == bp
      # retest with named parameters for the same result
      tls = affinity.translate(geom=ls, xoff=100, yoff=400, zoff=-10)
      assert tls.equals(els)
  
imports: import unittest
  from math import pi
  import numpy
  import pytest
  from shapely import affinity
  from shapely.geometry import Point
  from shapely.wkt import loads
label_desc: Use image node_id 9 for calling the TransformOpsTestCase obj's underlying member method code with example usage: obj.test_translate() without return types