class_docstr: Provides a list-like collection type for Dataset Attributes.
class_docstr_tok: ["Provides","a","list-like","collection","type","for","Dataset","Attributes","."]
docstr: Implements the insert() method.
docstr_tok: ["Implements","the","insert","(",")","method","."]
code: def insert(
      self, index: int, value: Union[T, DatasetAttribute[HDF5Any, T, T]]
  ):
      """Implements the insert() method."""
      if index < 0:
          index = len(self) + index
  
      if index < 0:
          index = 0
      elif index >= len(self):
          self._mapper[str(len(self))] = value
          return
  
      for i in reversed(range(index, len(self))):
          self._mapper.move(str(i), str(i + 1))
  
      self._mapper[str(index)] = 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 7 for calling the DatasetList obj's underlying member method code with example usage: obj.insert(index, value) without return types