code: def test_ticket_1380(self):
      # ticket:1380 regression: would raise a KeyError
  
      tuples = [(id(i), i) for i in range(3)]
      self.assert_sort(tuples)
  
imports: from sqlalchemy import exc
  from sqlalchemy.testing import assert_raises
  from sqlalchemy.testing import eq_
  from sqlalchemy.testing import fixtures
  from sqlalchemy.testing.util import conforms_partial_ordering
  from sqlalchemy.util import topological
label_desc: Use image node_id 13 for calling the DependencySortTest obj's underlying member method code with example usage: obj.test_ticket_1380() without return types