def __getitem__(self, index):
    'Returns an example or a sequence of examples.\n        It implements the standard Python indexing and one-dimensional integer\n        array indexing. It uses the :meth:`get_example` method by default, but\n        it may be overridden by the implementation to, for example, improve the\n        slicing performance.\n        Args:\n            index (int, slice, list or numpy.ndarray): An index of an example\n                or indexes of examples.\n        Returns:\n            If index is int, returns an example created by `get_example`.\n            If index is either slice or one-dimensional list or numpy.ndarray,\n            returns a list of examples created by `get_example`.\n        '
    if isinstance(index, slice):
        (current, stop, step) = index.indices(len(self))
        return [self.get_example(i) for i in range(current, stop, step)]
    elif (isinstance(index, list) or isinstance(index, numpy.ndarray)):
        return [self.get_example(i) for i in index]
    else:
        return self.get_example(index)
Returns an example or a sequence of examples.
It implements the standard Python indexing and one-dimensional integer
array indexing. It uses the :meth:`get_example` method by default, but
it may be overridden by the implementation to, for example, improve the
slicing performance.
Args:
    index (int, slice, list or numpy.ndarray): An index of an example
        or indexes of examples.
Returns:
    If index is int, returns an example created by `get_example`.
    If index is either slice or one-dimensional list or numpy.ndarray,
    returns a list of examples created by `get_example`.
def __getitem__(self, index):
    'Returns an example or a sequence of examples.\n        It implements the standard Python indexing and one-dimensional integer\n        array indexing. It uses the :meth:`get_example` method by default, but\n        it may be overridden by the implementation to, for example, improve the\n        slicing performance.\n        Args:\n            index (int, slice, list or numpy.ndarray): An index of an example\n                or indexes of examples.\n        Returns:\n            If index is int, returns an example created by `get_example`.\n            If index is either slice or one-dimensional list or numpy.ndarray,\n            returns a list of examples created by `get_example`.\n        '
    if isinstance(index, slice):
        (current, stop, step) = index.indices(len(self))
        return [self.get_example(i) for i in range(current, stop, step)]
    elif (isinstance(index, list) or isinstance(index, numpy.ndarray)):
        return [self.get_example(i) for i in index]
    else:
        return self.get_example(index)