code: def test_serde(nlp: Ner, case: T_TESTCASE, tmpdir: str):
      path = Path(tmpdir)
      to_disk(nlp, path)
      nlp2 = from_disk(path)
      assert isinstance(nlp2, Ner)
      run_ner(nlp2, *case)
  
file_path: camphr/packages/camphr_transformers/tests/test_ner.py
imports: from dataclasses import dataclass
  from hypothesis import strategies, given
  from pathlib import Path
  from typing import Dict, List, Literal, Tuple, Union
  from typing_extensions import TypeAlias
  from camphr.serde import from_disk, to_disk
  import pytest
  from camphr_transformers.ner import Ner, _decode_bio, _DUMMY
  from .utils import FIXTURE_DIR
label_desc: Use image node_id 5 for calling a global function with example usage: test_serde(nlp, case, tmpdir) without return types