code: def configure_strided_spans(window: int, stride: int) -> SpannerT:
      """
      Set the 'window' and 'stride' options for getting strided spans.
  
      If you set the window and stride to the same value, the spans will cover
      each token once. Setting 'stride' lower than 'window' will allow for an
      overlap, so that some tokens are counted twice. This can be desirable,
      because it allows all tokens to have both a left and right context.
      """
      return partial(get_strided_spans, window=window, stride=stride)
  
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 2 for calling a global function with example usage: configure_strided_spans(window, stride) and returns: partial