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 copy(self, doc: Optional["Doc"] = None) -> "SpanGroups":
      if doc is None:
          doc = self._ensure_doc()
      data_copy = ((k, v.copy(doc=doc)) for k, v in self.items())
      return SpanGroups(doc, items=data_copy)
  
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 4 for calling the SpanGroups obj's underlying member method code with example usage: obj.copy(doc) and returns: SpanGroups