code: def testTranslation(self):
      layout = Layout([(0, 0, 1), (0, 1, 0), (1, 0, 0), (2, 1, 3)])
      layout2 = layout.copy()
  
      layout.translate(1, 3, 2)
      self.assertEqual(
          layout.coords, [[1, 3, 3], [1, 4, 2], [2, 3, 2], [3, 4, 5]]
      )
  
      layout.translate((-1, -3, -2))
      self.assertEqual(layout.coords, layout2.coords)
  
      self.assertRaises(ValueError, layout.translate, v=[3])
  
imports: import unittest
  from math import hypot
  from igraph import Graph, Layout, BoundingBox, InternalError
  from igraph import umap_compute_weights
label_desc: Use image node_id 4 for calling the LayoutTests obj's underlying member method code with example usage: obj.testTranslation() without return types