code: def ndarray_to_dataset(ndarray):
      return tf.data.Dataset.from_tensor_slices(ndarray)
  
file_path: BigDL/docs/readthedocs/source/doc/Serving/Example/l08c08_forecasting_with_lstm.py
imports: import numpy
  import tensorflow
  import tensorflow.keras
label_desc: Use image node_id 5 for calling a global function with example usage: ndarray_to_dataset(ndarray) and returns: tf