code: def testTupleList(self):
      g = Graph.Full(3)
  
      # Check with vertex ids
      self.assertEqual(
          g.to_tuple_list(),
          [(0, 1), (0, 2), (1, 2)],
      )
  
      # Check failure for edge names
      self.assertRaises(AttributeError, g.to_tuple_list, True, "name")
  
      # Edge attributes
      g.es["name"] = ["first_edge", "second", None]
      self.assertEqual(
          g.to_tuple_list(edge_attrs="name"),
          [(0, 1, "first_edge"), (0, 2, "second"), (1, 2, None)],
      )
      self.assertEqual(
          g.to_tuple_list(edge_attrs=["name"]),
          [(0, 1, "first_edge"), (0, 2, "second"), (1, 2, None)],
      )
  
      # Missing vertex names
      self.assertRaises(AttributeError, g.to_tuple_list, False)
  
      # Vertex names
      g.vs["name"] = ["apple", "pear", "peach"]
      self.assertEqual(
          g.to_tuple_list(use_vids=False, edge_attrs="name"),
          [
              ("apple", "pear", "first_edge"),
              ("apple", "peach", "second"),
              ("pear", "peach", None),
          ],
      )
  
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 13 for calling the ForeignTests obj's underlying member method code with example usage: obj.testTupleList() without return types