class_docstr: A sliced view for :class:`SliceableDataset`.
class_docstr_tok: ["A","sliced","view","for",":","class",":","`","SliceableDataset","`","."]
code: def __len__(self):
      if isinstance(self._indices, slice):
          start, end, step = self._indices.indices(len(self._dataset))
          return len(range(start, end, step))
      else:
          return len(self._indices)
  
imports: import numbers
  import numpy
  import six
  import chainer
label_desc: Use image node_id 2 for calling the SlicedDataset obj's underlying member method code with example usage: obj.__len__() and returns: len, len