code: def test_op_broadcast_as(device_id, precision):
      a_data = [
          AA([1], dtype=PRECISION_TO_TYPE[precision]),
          AA([2], dtype=PRECISION_TO_TYPE[precision]),
          AA([3], dtype=PRECISION_TO_TYPE[precision]),
      ]
      b_data = [
          AA([[2]], dtype=PRECISION_TO_TYPE[precision]),
          AA([[2], [3]], dtype=PRECISION_TO_TYPE[precision]),
          AA([[2], [3], [4]], dtype=PRECISION_TO_TYPE[precision]),
      ]
  
      a = C.input_variable(
          shape=(1,),
          dtype=sanitize_dtype_cntk(PRECISION_TO_TYPE[precision]),
          name="a",
      )
      b = C.sequence.input_variable(
          shape=(1,),
          dtype=sanitize_dtype_cntk(PRECISION_TO_TYPE[precision]),
          name="b",
      )
  
      broadcast_a_as_b = C.sequence.broadcast_as(a, b)
  
      res = broadcast_a_as_b.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 18 for calling a global function with example usage: test_op_broadcast_as(device_id, precision) without return types