code: def testSequenceDict(self):
      g = Graph.Full(3)
  
      # Check with vertex ids
      self.assertEqual(g.to_list_dict(), {0: [1, 2], 1: [2]})
      self.assertEqual(
          g.to_list_dict(sequence_constructor=tuple),
          {0: (1, 2), 1: (2,)},
      )
  
      # Check failure for vertex names
      self.assertRaises(AttributeError, g.to_list_dict, False)
  
      # Check with vertex names
      g.vs["name"] = ["apple", "pear", "peach"]
      self.assertEqual(
          g.to_list_dict(use_vids=False),
          {"apple": ["pear", "peach"], "pear": ["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 14 for calling the ForeignTests obj's underlying member method code with example usage: obj.testSequenceDict() without return types