class_docstr: Wrapper for tf.data.Dataset to permit extensions.
class_docstr_tok: ["Wrapper","for","tf.data.Dataset","to","permit","extensions","."]
code: def from_arrays(
      cls,
      images: np.ndarray,
      labels: np.ndarray,
      augment_fn: Optional[Callable] = None,
  ):
      return cls(
          tf.data.Dataset.from_tensor_slices(
              dict(image=images, label=labels)
          ),
          images.shape[1:],
          augment_fn=augment_fn,
          parse_fn=None,
      )
  
file_path: privacy/research/mi_lira_2021/dataset.py
imports: from typing import Callable, Optional, Tuple, List
  import numpy
  import tensorflow
label_desc: Use image node_id 2 for calling the DataSet obj's underlying member method code with example usage: obj.from_arrays(cls, images, labels, augment_fn) and returns: cls