code: def _np_to_dataset(data, batch_size):
      dataset = tf.data.Dataset.from_tensor_slices(data)
      dataset = dataset.batch(batch_size)
      return dataset
  
imports: from bigdl.orca.automl.model.abstract import BaseModel, ModelBuilder
  import numpy
  from bigdl.orca.automl.metrics import Evaluator
  from bigdl.orca.common import SafePickle
  import copy
  import tensorflow
  from tensorflow.keras import backend
  import types
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 3 for calling the KerasBaseModel obj's underlying member method code with example usage: obj._np_to_dataset(data, batch_size) and returns: dataset