class_docstr: Wrapper around a list, that marks it as 'exploded'.
  
  As soon as items are added or the list is extended, the new items are
  automatically exploded as well.
docstr: Ensure that when `(style_str, 'long string')` is set, the string will be
  exploded.
code: def __setitem__(
      self, index: SupportsIndex | slice, value: _T | Iterable[_T]
  ) -> None:
      """
      Ensure that when `(style_str, 'long string')` is set, the string will be
      exploded.
      """
      if not isinstance(index, slice):
          int_index = index.__index__()
          index = slice(int_index, int_index + 1)
      if isinstance(value, tuple):  # In case of `OneStyleAndTextTuple`.
          value = cast("List[_T]", [value])
  
      super().__setitem__(index, explode_text_fragments(value))
  
file_path: catboost/contrib/python/prompt-toolkit/py3/prompt_toolkit/layout/utils.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Iterable, List, TypeVar, cast, overload
  from prompt_toolkit.formatted_text.base import OneStyleAndTextTuple
label_desc: Use image node_id 6 for calling the _ExplodedList obj's underlying member method code with example usage: obj.__setitem__(index, value) without return types