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 __setitem__(
      self, index: int, value: Union[T, DatasetAttribute[HDF5Any, T, T]]
  ):
      if index < 0:
          index = len(self) + index
      if not 0 <= index < len(self):
          raise IndexError("list assignment index out of range")
  
      key = str(index)
      if key in self._mapper:
          del self._mapper[key]
  
      self._mapper[key] = 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 15 for calling the DatasetList obj's underlying member method code with example usage: obj.__setitem__(index, value) without return types