class_docstr: A helper class for :class:`SliceableDataset`.
class_docstr_tok: ["A","helper","class","for",":","class",":","`","SliceableDataset","`","."]
code: def __getitem__(self, args):
      if isinstance(args, tuple):
          indices, keys = args
      else:
          indices = args
          keys = self._dataset.keys
  
      if not isinstance(indices, slice):
          indices = _bool_to_indices(indices, len(self._dataset))
      key_indices = tuple(_as_key_indices(keys, self._dataset.keys))
      return_tuple = _is_iterable(keys)
  
      return SlicedDataset(
          self._dataset,
          indices,
          tuple(key_indices) if return_tuple else key_indices[0],
      )
  
imports: import numbers
  import numpy
  import six
  import chainer
label_desc: Use image node_id 2 for calling the SliceHelper obj's underlying member method code with example usage: obj.__getitem__(args) and returns: SlicedDataset