code: def assert_sort_deterministic(self, tuples, allitems, expected):
      result = list(topological.sort(tuples, allitems))
      assert conforms_partial_ordering(tuples, result)
      assert result == expected
  
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 2 for calling the DependencySortTest obj's underlying member method code with example usage: obj.assert_sort_deterministic(tuples, allitems, expected) without return types