code: def uniform(learner, X, n_instances=1):
      return np.random.choice(
          range(len(X)), size=n_instances, replace=False
      )
  
file_path: modAL/examples/deep_bayesian_active_learning.py
imports: import keras
  import numpy
  from keras import backend
  from keras.datasets import mnist
  from keras.layers import Activation, Conv2D, Dense, Dropout, Flatten, MaxPooling2D
  from keras.models import Sequential
  from keras.regularizers import l2
  from keras.wrappers.scikit_learn import KerasClassifier
  from modAL.models import ActiveLearner
label_desc: Use image node_id 3 for calling a global function with example usage: uniform(learner, X, n_instances) and returns: np