code: def test_outputs_passing():
      in1 = C.input_variable(shape=(1,))
      a = C.alias(in1 + 1, name="a")
      b = a + 2
  
      expected = [[2], [3]]
  
      result = b.eval({in1: [[1], [2]]}, outputs=a.outputs)
      assert np.array_equal(result, expected)
  
      result = b.eval({in1: [[1], [2]]}, outputs=list(a.outputs))
      assert np.array_equal(result, expected)
  
      result = b.eval({in1: [[1], [2]]}, outputs=a.output)
      assert np.array_equal(result, expected)
  
      result = b.eval({in1: [[1], [2]]}, outputs=a)
      assert np.array_equal(result, expected)
  
      with pytest.raises(TypeError):
          b.eval({in1: [[1], [2]]}, outputs=[a.outputs])
  
imports: import numpy
  import os
  import pytest
  import cntk
  from .ops_test_utils import compare_lists_of_np_arrays, AA, cntk_device
  from cntk.io import MinibatchSource, CTFDeserializer, StreamDefs, StreamDef
label_desc: Use image node_id 26 for calling a global function with example usage: test_outputs_passing() without return types