code: def test_constant_folding():
      m = theano.tensor.ones((1,), dtype="int8")
      l = theano.typed_list.make_list([m, m])
      f = theano.function([], l)
      topo = f.maker.fgraph.toposort()
      assert len(topo)
      assert isinstance(topo[0].op, theano.compile.ops.DeepCopyOp)
      assert f() == [1, 1]
  
file_path: Theano/theano/typed_list/tests/test_opt.py
imports: from __future__ import absolute_import, print_function, division
  import unittest
  import numpy
  import theano
  import theano.typed_list
  from theano import tensor
  from theano.typed_list.type import TypedListType
  from theano.typed_list.basic import Insert, Append, Extend, Remove, Reverse
  from theano import In
label_desc: Use image node_id 2 for calling a global function with example usage: test_constant_folding() without return types