code: def check_serialization(
      nlp, text: str = "It is a serialization set. 今日はとてもいい天気だった！"
  ):
      with tempfile.TemporaryDirectory() as d:
          nlp.to_disk(str(d))
          nlp2 = spacy.load(str(d))
          assert_docs_equal(nlp(text), nlp2(text))
  
file_path: camphr/packages/camphr/tests/utils.py
imports: from camphr.serde import SerDe
  import json
  import os
  import tempfile
  from itertools import zip_longest
  from pathlib import Path
  from typing import Any, Tuple
label_desc: Use image node_id 8 for calling a global function with example usage: check_serialization(nlp, text) without return types