code: def test_function_dump():
      v = theano.tensor.vector()
      fct1 = theano.function([v], v + 1)
  
      try:
          tmpdir = tempfile.mkdtemp()
          fname = os.path.join(tmpdir, "test_function_dump.pkl")
          theano.function_dump(fname, [v], v + 1)
          with open(fname, "rb") as f:
              l = pickle.load(f)
      finally:
          if tmpdir is not None:
              shutil.rmtree(tmpdir)
  
      fct2 = theano.function(**l)
      x = [1, 2, 3]
      assert np.allclose(fct1(x), fct2(x))
  
imports: from __future__ import absolute_import, print_function, division
  import six.moves.cPickle
  import os
  import shutil
  import tempfile
  import unittest
  import numpy
  import theano
  from theano.compile.io import In
label_desc: Use image node_id 1 for calling a global function with example usage: test_function_dump() without return types