code: def keras_generator(
      self,
      data_generator,
      input_data="input_data",
      targets="ground_truth",
  ):
      while True:
          data = next(data_generator)
          keras_data = (data[self.input_data], data[self.targets])
          yield keras_data
  
      return
  
imports: from keras.engine import Input, Model
  from keras.layers import Activation, Lambda
  from keras.layers.merge import concatenate
  from keras.optimizers import Nadam, SGD, Adam, RMSprop, Adagrad, Adamax, Adadelta
  from keras import backend
  from deepneuro.models.cost_functions import dice_coef_loss, dice_coef
  from deepneuro.models.model import DeepNeuroModel
  from deepneuro.utilities.visualize import check_data
  from deepneuro.utilities.util import add_parameter
  from deepneuro.models.callbacks import get_callbacks
  from deepneuro.models.cost_functions import WeightedCategoricalCrossEntropy
label_desc: Use image node_id 5 for calling the KerasModel obj's underlying member method code with example usage: obj.keras_generator(data_generator, input_data, targets) without return types