code: def get_spans(word_seqs):
      vocab = Vocab()
      docs = [Doc(vocab, words=words) for words in word_seqs]
      return [doc[:] for doc in docs]
  
file_path: spacy-transformers/spacy_transformers/tests/test_alignment.py
imports: import pytest
  from typing import List
  import numpy
  from spacy.tokens import Doc
  from spacy.vocab import Vocab
  from thinc.api import NumpyOps
  from thinc.types import Ragged
  from ..align import get_alignment, apply_alignment
  from ..align import get_span2wp_from_offset_mapping
label_desc: Use image node_id 2 for calling a global function with example usage: get_spans(word_seqs) and returns: unknown