code: def configure_get_doc_spans() -> Callable:
      """
      Create a `span_getter` that uses the whole document as its spans. This is
      the best approach if your `Doc` objects already refer to relatively short
      texts.
      """
      return get_doc_spans
  
file_path: spacy-transformers/spacy_transformers/span_getters.py
imports: from typing import Callable, Iterable, List
  from functools import partial
  from spacy.tokens import Doc, Span
  from .util import registry
label_desc: Use image node_id 6 for calling a global function with example usage: configure_get_doc_spans() and returns: get_doc_spans