code: def test_composing_function(self):
      # Tests that one can compose two theano functions when the outputs are
      # provided in a dictionary.
  
      x = T.scalar("x")
      y = T.scalar("y")
  
      a = x + y
      b = x * y
  
      f = theano.function([x, y], outputs={"a": a, "b": b})
  
      a = T.scalar("a")
      b = T.scalar("b")
  
      l = a + b
      r = a * b
  
      g = theano.function([a, b], outputs=[l, r])
  
      result = g(**f(5, 7))
  
      assert result[0] == 47.0
      assert result[1] == 420.0
  
file_path: Theano/theano/tests/test_dictionary_output.py
imports: from __future__ import absolute_import, print_function, division
  import unittest
  import theano
  import theano.tensor
label_desc: Use image node_id 4 for calling the dictionary_output_checker obj's underlying member method code with example usage: obj.test_composing_function() without return types