code: def testDL(self):
      with temporary_file(
          """\
          dl n=5
          format = fullmatrix
          labels embedded
          data:
          larry david lin pat russ
          Larry 0 1 1 1 0
          david 1 0 0 0 1
          Lin 1 0 0 1 0
          Pat 1 0 1 0 1
          russ 0 1 0 1 0
          """
      ) as tmpfname:
          g = Graph.Read_DL(tmpfname)
          self.assertTrue(isinstance(g, Graph))
          self.assertTrue(g.vcount() == 5 and g.ecount() == 12)
          self.assertTrue(g.is_directed())
          self.assertTrue(
              sorted(g.get_edgelist())
              == [
                  (0, 1),
                  (0, 2),
                  (0, 3),
                  (1, 0),
                  (1, 4),
                  (2, 0),
                  (2, 3),
                  (3, 0),
                  (3, 2),
                  (3, 4),
                  (4, 1),
                  (4, 3),
              ]
          )
  
      with temporary_file(
          """\
          dl n=5
          format = fullmatrix
          labels:
          barry,david
          lin,pat
          russ
          data:
          0 1 1 1 0
          1 0 0 0 1
          1 0 0 1 0
          1 0 1 0 1
          0 1 0 1 0
          """
      ) as tmpfname:
          g = Graph.Read_DL(tmpfname)
          self.assertTrue(isinstance(g, Graph))
          self.assertTrue(g.vcount() == 5 and g.ecount() == 12)
          self.assertTrue(g.is_directed())
          self.assertTrue(
              sorted(g.get_edgelist())
              == [
                  (0, 1),
                  (0, 2),
                  (0, 3),
                  (1, 0),
                  (1, 4),
                  (2, 0),
                  (2, 3),
                  (3, 0),
                  (3, 2),
                  (3, 4),
                  (4, 1),
                  (4, 3),
              ]
          )
  
      with temporary_file(
          """\
          DL n=5
          format = edgelist1
          labels:
          george, sally, jim, billy, jane
          labels embedded:
          data:
          george sally 2
          george jim 3
          sally jim 4
          billy george 5
          jane jim 6
          """
      ) as tmpfname:
          g = Graph.Read_DL(tmpfname, False)
          self.assertTrue(isinstance(g, Graph))
          self.assertTrue(g.vcount() == 5 and g.ecount() == 5)
          self.assertTrue(not g.is_directed())
          self.assertTrue(
              sorted(g.get_edgelist())
              == [(0, 1), (0, 2), (0, 3), (1, 2), (2, 4)]
          )
  
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 2 for calling the ForeignTests obj's underlying member method code with example usage: obj.testDL() without return types