code: def test_0(self):
      # Test a simple graph
      r1, r2, r5 = MyVariable(1), MyVariable(2), MyVariable(5)
      o = MyOp.make_node(r1, r2)
      o2 = MyOp.make_node(o.outputs[0], r5)
  
      all = general_toposort(o2.outputs, prenode)
      assert all == [r5, r2, r1, o, o.outputs[0], o2, o2.outputs[0]]
  
      all = io_toposort([r5], o2.outputs)
      assert all == [o, o2]
  
imports: from __future__ import absolute_import, print_function, division
  from itertools import count
  import pickle
  import unittest
  from nose.plugins.skip import SkipTest
  import numpy
  from theano import sparse, shared, tensor
  from theano.gof.graph import Apply, as_string, clone, general_toposort, inputs, io_toposort, is_same_graph, Variable
  from theano.gof.op import Op
  from theano.gof.type import Type
label_desc: Use image node_id 1 for calling the TestToposort obj's underlying member method code with example usage: obj.test_0() without return types