code: def print_prf_per_type(
      msg: Printer,
      scores: Dict[str, Dict[str, float]],
      name: str,
      type: str,
  ) -> None:
      data = []
      for key, value in scores.items():
          row = [key]
          for k in ("p", "r", "f"):
              v = value[k]
              row.append(
                  f"{v * 100:.2f}" if isinstance(v, (int, float)) else v
              )
          data.append(row)
      msg.table(
          data,
          header=("", "P", "R", "F"),
          aligns=("l", "r", "r", "r"),
          title=f"{name} (per {type})",
      )
  
file_path: spaCy/spacy/cli/evaluate.py
imports: import re
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Union
  import srsly
  from thinc.api import fix_random_seed
  from wasabi import Printer
  from ..None import displacy, util
  from ..scorer import Scorer
  from ..tokens import Doc
  from ..training import Corpus
  from ._util import Arg, Opt, app, benchmark_cli, import_code, setup_gpu
label_desc: Use image node_id 5 for calling a global function with example usage: print_prf_per_type(msg, scores, name, type) without return types