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="features", shape=input_dim
                  ),
                  labels=C.io.StreamDef(
                      field="labels", shape=label_dim
                  ),
              ),
          ),
          randomize=is_training,
          max_sweeps=C.io.INFINITELY_REPEAT if is_training else 1,
      )
  
imports: from __future__ import print_function
  import numpy
  import sys
  import os
  import cntk
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