code: def generate_random_data(sample_size, feature_dim, num_classes):
      # Create synthetic data using NumPy.
      Y = np.random.randint(
          size=(sample_size, 1), low=0, high=num_classes
      )
  
      # Make sure that the data is separable
      X = (np.random.randn(sample_size, feature_dim) + 3) * (Y + 1)
      X = X.astype(np.float32)
      # converting class 0 into the vector "1 0 0",
      # class 1 into vector "0 1 0", ...
      class_ind = [
          Y == class_number for class_number in range(num_classes)
      ]
      Y = np.asarray(np.hstack(class_ind), dtype=np.float32)
      return X, Y
  
imports: from __future__ import division, print_function
  import numpy
  import cntk
  from cntk import parameter
  import pytest
  import sys
  import itertools
  from cntk.logging import ProgressPrinter
  from cntk.learners import sgd, learning_rate_schedule, learning_parameter_schedule, UnitType, universal
  from cntk.layers import Dense, Sequential
label_desc: Use image node_id 14 for calling a global function with example usage: generate_random_data(sample_size, feature_dim, num_classes) and returns: X,  Y