code: def test_recurrence_shape_inference():
      i = C.sequence.input_variable((2,))
      p = C.placeholder()
      p_past = C.sequence.past_value(p)
      p_past_plus_i = p_past + i
  
      p_past_plus_i.replace_placeholder(p_past_plus_i.output)
      assert p_past_plus_i.output.shape == (2,)
  
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 12 for calling a global function with example usage: test_recurrence_shape_inference() without return types