code: def benchmark(docs, tokenize_func):
      correct = 0
      for text, expected in docs:
          segments = tokenize_func(text)
          if segments == expected:
              correct += 1
      return correct
  
file_path: pySBD/benchmarks/genia_benchmark.py
imports: import blingfire
  import nltk
  import pysbd
  import spacy
  import stanza
  from syntok.tokenizer import Tokenizer
  import syntok.segmenter
  from pathlib import Path
label_desc: Use image node_id 10 for calling a global function with example usage: benchmark(docs, tokenize_func) and returns: correct