class_docstr: An abstraction representing a microbatch in the pipeline.
class_docstr_tok: ["An","abstraction","representing","a","microbatch","in","the","pipeline","."]
code: def _setitem_by_index(self, index: int, value) -> None:
      if not self.atomic:
          i = index
          self._values = self._values[:i] + (value,) + self._values[i + 1 :]  # type: ignore[operator]
          return
  
      if index != 0:
          raise IndexError("atomic batch allows index 0 only")
  
      self._values = value
  
imports: import typing
  from typing import Any, Callable, List, Union, cast, Sequence
  import torch
  from torch import Tensor
  import torch.cuda.comm
label_desc: Use image node_id 14 for calling the Batch obj's underlying member method code with example usage: obj._setitem_by_index(index, value) without return types