code: def run_ner(nlp: Ner, text: str, expected: List[Tuple[str, str]]):
      doc = nlp(text)
      assert doc.ents is not None
      ret = [(e.text, e.label) for e in doc.ents]
      assert ret == expected
  
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 4 for calling a global function with example usage: run_ner(nlp, text, expected) without return types