code: def test_tag_or_bunsetsu_from_token(nlp: Language, text: str):
      doc = nlp(text)
      for _ in range(2):  # loop 2 times to validate cache
          for k in ["tag", "bunsetsu"]:
              for span in doc._.get(getattr(KNP_USER_KEYS, k).spans):
                  for token in span:
                      assert (
                          token._.get(getattr(KNP_USER_KEYS.morph, k))
                          == span
                      )
  
file_path: camphr/packages/camphr_knp/tests/test_knp.py
imports: from camphr_knp import create_knp_nlp
  import itertools
  from typing import List, Tuple
  import pytest
  from spacy.language import Language
  from spacy.tokens import Doc
  from camphr_knp import BUNSETSU, KNP_USER_KEYS, TAG
  from .utils import check_knp
label_desc: Use image node_id 8 for calling a global function with example usage: test_tag_or_bunsetsu_from_token(nlp, text) without return types