code: def create_reader(path, is_training, input_dim, label_dim):
      return C.io.MinibatchSource(
          C.io.CTFDeserializer(
              path,
              C.io.StreamDefs(
                  features=C.io.StreamDef(
                      field="x", shape=input_dim, is_sparse=True
                  ),
                  labels=C.io.StreamDef(
                      field="y", shape=label_dim, is_sparse=False
                  ),
              ),
          ),
          randomize=is_training,
          max_sweeps=C.io.INFINITELY_REPEAT if is_training else 1,
      )
  
imports: import os
  import cntk
  import copy
label_desc: Use image node_id 1 for calling a global function with example usage: create_reader(path, is_training, input_dim, label_dim) and returns: C