class_docstr: A dict-like proxy held by the Doc, to control access to span groups.
class_docstr_tok: ["A","dict-like","proxy","held","by","the","Doc",",","to","control","access","to","span","groups","."]
code: def __setitem__(
      self, key: str, value: Union[SpanGroup, Iterable["Span"]]
  ) -> None:
      if not isinstance(value, SpanGroup):
          value = self._make_span_group(key, value)
      assert value.doc is self.doc_ref()
      UserDict.__setitem__(self, key, value)
  
file_path: spaCy/spacy/tokens/_dict_proxies.py
imports: import warnings
  import weakref
  from collections import UserDict
  from typing import TYPE_CHECKING, Dict, Iterable, List, Optional, Tuple, Union
  import srsly
  from ..errors import Errors, Warnings
  from .span_group import SpanGroup
label_desc: Use image node_id 2 for calling the SpanGroups obj's underlying member method code with example usage: obj.__setitem__(key, value) without return types