code: def testConstructor(self):
      layout = Layout([(0, 0, 1), (0, 1, 0), (1, 0, 0)])
      self.assertEqual(layout.dim, 3)
      layout = Layout([(0, 0, 1), (0, 1, 0), (1, 0, 0)], 3)
      self.assertEqual(layout.dim, 3)
      self.assertRaises(ValueError, Layout, [(0, 1), (1, 0)], 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 1 for calling the LayoutTests obj's underlying member method code with example usage: obj.testConstructor() without return types