code: def test_as_composite():
      input_dim = 1
      proj_dim = 2
      x = C.input_variable((input_dim,))
      b = C.parameter((proj_dim))
      w = C.parameter((input_dim, proj_dim))
      func_name = "t_plus_b"
      t_plus_b = C.plus(C.times(x, w), b, name=func_name)
      assert t_plus_b.root_function.name == func_name
      composite = C.as_composite(t_plus_b.root_function)
      assert composite.root_function.name == func_name
      composite = C.as_composite(composite)
      assert composite.root_function.name == func_name
      composite = C.as_composite(t_plus_b)
      assert composite.root_function.name == func_name
  
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 16 for calling a global function with example usage: test_as_composite() without return types