code: def testLattice(self):
      g = Graph.Lattice([4, 3], circular=False)
      self.assertEqual(
          sorted(sorted(x) for x in g.get_edgelist()),
          [
              [0, 1],
              [0, 4],
              [1, 2],
              [1, 5],
              [2, 3],
              [2, 6],
              [3, 7],
              [4, 5],
              [4, 8],
              [5, 6],
              [5, 9],
              [6, 7],
              [6, 10],
              [7, 11],
              [8, 9],
              [9, 10],
              [10, 11],
          ],
      )
  
      g = Graph.Lattice([4, 3], circular=True)
      self.assertEqual(
          sorted(sorted(x) for x in g.get_edgelist()),
          [
              [0, 1],
              [0, 3],
              [0, 4],
              [0, 8],
              [1, 2],
              [1, 5],
              [1, 9],
              [2, 3],
              [2, 6],
              [2, 10],
              [3, 7],
              [3, 11],
              [4, 5],
              [4, 7],
              [4, 8],
              [5, 6],
              [5, 9],
              [6, 7],
              [6, 10],
              [7, 11],
              [8, 9],
              [8, 11],
              [9, 10],
              [10, 11],
          ],
      )
  
      g = Graph.Lattice([4, 3], circular=(False, 1))
      self.assertEqual(
          sorted(sorted(x) for x in g.get_edgelist()),
          [
              [0, 1],
              [0, 4],
              [0, 8],
              [1, 2],
              [1, 5],
              [1, 9],
              [2, 3],
              [2, 6],
              [2, 10],
              [3, 7],
              [3, 11],
              [4, 5],
              [4, 8],
              [5, 6],
              [5, 9],
              [6, 7],
              [6, 10],
              [7, 11],
              [8, 9],
              [9, 10],
              [10, 11],
          ],
      )
  
imports: import unittest
  from igraph import Graph, InternalError
label_desc: Use image node_id 11 for calling the GeneratorTests obj's underlying member method code with example usage: obj.testLattice() without return types