code: def test_op_broadcast_as_in_loop(device_id):
      a_data = [AA([1]), AA([2]), AA([3])]
      b_data = [AA([[2]]), AA([[2], [3]]), AA([[2], [3], [4]])]
  
      a = C.input_variable(shape=(1,), name="a")
      b = C.sequence.input_variable(shape=(1,), name="b")
  
      out_placeholder = C.placeholder()
      out_delayed = C.sequence.past_value(out_placeholder, time_step=5)
      out_delayed_plus_b = out_delayed + b
      out = C.sequence.broadcast_as(a, out_delayed_plus_b)
      out.replace_placeholder(out)
  
      res = out.eval({a: a_data, b: b_data})
      assert np.array_equal(res[0], np.asarray([[1.0]]))
      assert np.array_equal(res[1], np.asarray([[2.0], [2.0]]))
      assert np.array_equal(res[2], np.asarray([[3.0], [3.0], [3.0]]))
  
imports: from __future__ import division
  import numpy
  import pytest
  import cntk
  from .ops_test_utils import cntk_device
  from cntk.tests.test_utils import _to_dense, _to_csr
  from .ops_test_utils import unittest_helper, _test_unary_op, _test_binary_op, AA, precision, PRECISION_TO_TYPE, cntk_device
  from cntk import Value
  from cntk.axis import Axis
  from cntk.internal import sanitize_dtype_cntk
  from ..None import constant
label_desc: Use image node_id 19 for calling a global function with example usage: test_op_broadcast_as_in_loop(device_id) without return types