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 setdefault(self, key, default=None):
      if not isinstance(default, SpanGroup):
          if default is None:
              spans = []
          else:
              spans = default
          default = self._make_span_group(key, spans)
      return super().setdefault(key, default=default)
  
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 5 for calling the SpanGroups obj's underlying member method code with example usage: obj.setdefault(key, default) and returns: super