class_docstr: Provides a list-like collection type for Dataset Attributes.
class_docstr_tok: ["Provides","a","list-like","collection","type","for","Dataset","Attributes","."]
code: def __getitem__(self, index: Union[int, slice]):
      if isinstance(index, slice):
          return [self[i] for i in range(len(self))[index]]
  
      if index < 0:
          index = len(self) + index
  
      if not 0 <= index < len(self):
          raise IndexError(index)
  
      return self._mapper[str(index)].get_value()
  
imports: import typing
  from collections.abc import Sequence
  from typing import Generic, List, Union, overload
  from pennylane.data.base.attribute import DatasetAttribute
  from pennylane.data.base.hdf5 import HDF5Any, HDF5Group
  from pennylane.data.base.mapper import MapperMixin
  from pennylane.data.base.typing_util import T
label_desc: Use image node_id 14 for calling the DatasetList obj's underlying member method code with example usage: obj.__getitem__(index) and returns: self, unknown