code: def testDictList(self):
      g = Graph.Full(3)
  
      # Check with vertex ids
      self.assertEqual(
          g.to_dict_list(),
          (
              [{}, {}, {}],
              [
                  {"source": 0, "target": 1},
                  {"source": 0, "target": 2},
                  {"source": 1, "target": 2},
              ],
          ),
      )
  
      # Check failure for vertex names
      self.assertRaises(AttributeError, g.to_dict_list, False)
  
      # Check with vertex names
      g.vs["name"] = ["apple", "pear", "peach"]
      self.assertEqual(
          g.to_dict_list(),
          (
              [{"name": "apple"}, {"name": "pear"}, {"name": "peach"}],
              [
                  {"source": 0, "target": 1},
                  {"source": 0, "target": 2},
                  {"source": 1, "target": 2},
              ],
          ),
      )
      self.assertEqual(
          g.to_dict_list(use_vids=False),
          (
              [{"name": "apple"}, {"name": "pear"}, {"name": "peach"}],
              [
                  {"source": "apple", "target": "pear"},
                  {"source": "apple", "target": "peach"},
                  {"source": "pear", "target": "peach"},
              ],
          ),
      )
  
imports: import gzip
  import io
  import unittest
  import warnings
  from igraph import Graph, InternalError
  from .utils import temporary_file
label_desc: Use image node_id 12 for calling the ForeignTests obj's underlying member method code with example usage: obj.testDictList() without return types