class_docstr: Zip data from different paths in an HDF5 file.
  
  Warning:
      The current implementation will load all data into memory. (TODO)
class_docstr_tok: ["Zip","data","from","different","paths","in","an","HDF5","file",".","Warning",":","The","current","implementation","will","load","all","data","into","memory",".","(","TODO",")"]
docstr: Args:
      filename (str): h5 data file.
      data_paths (list): list of h5 paths to zipped.
          For example `['images', 'labels']`.
      shuffle (bool): shuffle all data.
docstr_tok: ["Args",":","filename","(","str",")",":","h5","data","file",".","data_paths","(","list",")",":","list","of","h5","paths","to","zipped",".","For","example","`","[","'images","'",",","'labels","'","]","`",".","shuffle","(","bool",")",":","shuffle","all","data","."]
code: def __init__(self, filename, data_paths, shuffle=True):
      """
      Args:
          filename (str): h5 data file.
          data_paths (list): list of h5 paths to zipped.
              For example `['images', 'labels']`.
          shuffle (bool): shuffle all data.
      """
      self.f = h5py.File(filename, "r")
      logger.info("Loading {} to memory...".format(filename))
      self.dps = [self.f[k][...] for k in data_paths]
      lens = [len(k) for k in self.dps]
      assert all(k == lens[0] for k in lens)
      self._size = lens[0]
      self.shuffle = shuffle
  
imports: import numpy
  import os
  import six
  from ..utils import logger
  from ..utils.argtools import log_once
  from ..utils.serialize import loads
  from ..utils.develop import create_dummy_class
  from ..utils.loadcaffe import get_caffe_pb
  from ..utils.timer import timed_operation
  from ..utils.utils import get_tqdm
  from .base import DataFlowReentrantGuard, RNGDataFlow
  from .common import MapData
label_desc: Use image node_id 1 to create a new HDF5Data object from inherited base classes: RNGDataFlow with example: obj = HDF5Data(filename, data_paths, shuffle)