code: def _serialize(udf):
      dictionary = {}
      dictionary["class"] = udf.__class__.__name__
      dictionary["module"] = udf.__class__.__module__
      dictionary["op_name"] = udf.op_name
      dictionary["state"] = udf.serialize()
      dictionary["version"] = _serialization_version
      return dictionary
  
file_path: CNTK/bindings/python/cntk/internal/__init__.py
imports: from .swig_helper import typemap, map_if_possible
  from .sanitize import *
  from .sanitize import _as_tuple
  import cntk
label_desc: Use image node_id 3 for calling a global function with example usage: _serialize(udf) and returns: dictionary