code: def test_topological_sort(self):
      sorted_nodes = topological_sort(self.graph)
      self.assertSequenceEqual(sorted_nodes, [5, 7, 6, 4, 2, 1, 3])
  
      message = (
          "Cannot apply topological sort to the graphs with cycles"
      )
      with self.assertRaisesRegexp(RuntimeError, message):
          topological_sort({1: [2], 2: [3], 3: [1]})
  
file_path: neupy/tests/layers/graph/test_extra_functions.py
imports: from collections import OrderedDict
  from neupy.layers.graph import find_outputs_in_graph, topological_sort, filter_graph, is_cyclic, lazy_property
  from base import BaseTestCase
label_desc: Use image node_id 5 for calling the ExtraFunctionsTestCase obj's underlying member method code with example usage: obj.test_topological_sort() without return types