code: def assert_sort(self, tuples, allitems=None):
      if allitems is None:
          allitems = self._nodes_from_tuples(tuples)
      else:
          allitems = self._nodes_from_tuples(tuples).union(allitems)
      result = list(topological.sort(tuples, allitems))
      assert conforms_partial_ordering(tuples, result)
  
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 1 for calling the DependencySortTest obj's underlying member method code with example usage: obj.assert_sort(tuples, allitems) without return types