code: def test_doc_hyp(words: List[str]):
      doc = Doc.from_words(words)
      assert doc.text == "".join(words)
      assert doc.tokens is not None
      for word, token in zip(words, doc.tokens):
          assert word == doc.text[token.start_char : token.end_char]
  
file_path: camphr/packages/camphr/tests/test_doc.py
imports: from camphr.doc import Doc, DocProto, Ent, EntProto, Span, SpanProto, Token, TokenProto
  from typing import Any, List
  import hypothesis.strategies
  from hypothesis import given
  import pytest
label_desc: Use image node_id 2 for calling a global function with example usage: test_doc_hyp(words) without return types