code: def make_token_scorer(
      metric: t.Callable[
          [t.List[t.List[str]], t.List[t.List[str]]], float
      ],
      **kwargs,
  ):
      """Make a scorer that accepts span labels and predictions."""
      return make_scorer(metric, **kwargs)
  
file_path: deepchecks/deepchecks/nlp/metric_utils/token_classification.py
imports: import typing
  from collections.abc import Sequence
  from seqeval.metrics import accuracy_score, f1_score, precision_score, recall_score
  from seqeval.scheme import Token
  from sklearn.metrics import make_scorer
  from deepchecks.core.errors import DeepchecksValueError
label_desc: Use image node_id 2 for calling a global function with example usage: make_token_scorer(metric) and returns: make_scorer