code: def generate_random_data_sample(
      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)
      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.ops.tests.ops_test_utils import cntk_device, mem_used, os_process
  from cntk.ops.functions import UserFunction
  from cntk import sigmoid
label_desc: Use image node_id 1 for calling a global function with example usage: generate_random_data_sample(sample_size, feature_dim, num_classes) and returns: X,  Y