class_docstr: Returns flattened versions of images read in from disk. This dataset can be
  used with the default neighbour retrieval method used by ivis (Annoy KNN index)
  since it is 2D.
class_docstr_tok: ["Returns","flattened","versions","of","images","read","in","from","disk",".","This","dataset","can","be","used","with","the","default","neighbour","retrieval","method","used","by","ivis","(","Annoy","KNN","index",")","since","it","is","2D","."]
code: def __getitem__(self, idx):
      if isinstance(idx, slice):
          return np.asarray(super().__getitem__(idx))
      return np.asarray(super().__getitem__(idx)).flatten()
  
file_path: ivis/ivis/data/sequence/image.py
imports: import os
  from concurrent.futures import ThreadPoolExecutor
  import numpy
  import tensorflow
  from .sequence import IndexableDataset
label_desc: Use image node_id 2 for calling the FlattenedImageDataset obj's underlying member method code with example usage: obj.__getitem__(idx) and returns: np, np