code: def user_function(user_func):
      """
      Wraps the passed Function to create a composite representing the
      composite Function graph rooted at the passed root Function.
      """
      from . import as_composite
  
      return as_composite(user_func)
  
imports: import warnings
  import numbers
  import numpy
  from scipy import sparse
  from .None import cntk_py
  from .device import use_default_device, cpu, DeviceKind
  from cntk.internal import typemap
  from cntk.internal.sanitize import sanitize_batch, _sparse_to_dense_network_cache, data_type_to_dtype
label_desc: Use image node_id 2 for calling a global function with example usage: user_function(user_func) and returns: as_composite