code: def test_serialize(nlp: Tokenizer, tmpdir: Path):
      tmpdir = Path(tmpdir)
      nlp.to_disk(tmpdir)
      nlp2 = Tokenizer.from_disk(tmpdir)
      text, tokens = TESTCASE[0]
      doc = nlp2(text)
      assert (
          doc.text == text.replace("　", " ").replace("\t", " ").strip()
      )
      for token, expected in zip(doc, tokens):
          assert token.text == expected
  
file_path: camphr/packages/camphr/tests/tokenizer/sentencepiece/test_sentencepiecelang.py
imports: from pathlib import Path
  from tests.utils import check_spm
  from typing import List, TYPE_CHECKING, Tuple
  import pytest
  from camphr.tokenizer.sentencepiece import Tokenizer
label_desc: Use image node_id 3 for calling a global function with example usage: test_serialize(nlp, tmpdir) without return types