code: def _spans_to_span(spans: List[Span], label: str) -> Span:
      return Span(
          spans[0].doc, spans[0].start, spans[-1].end, label=label
      )
  
file_path: camphr/packages/camphr_knp/camphr_knp/noun_chunker.py
imports: from typing import Iterable, List, Optional, Tuple
  import spacy
  from spacy.tokens import Doc, Span, Token
  from .consts import KNP_USER_KEYS
label_desc: Use image node_id 7 for calling a global function with example usage: _spans_to_span(spans, label) and returns: Span