code: def benchmark(golden_rules, tokenize_func):
      score = 0
      for rule in golden_rules:
          text, expected = rule
          segments = tokenize_func(text)
          if segments == expected:
              score += 1
      percent_score = (score / total_rules) * 100.0
  
      return percent_score
  
file_path: pySBD/benchmarks/benchmark_sbd_tools.py
imports: import blingfire
  import nltk
  import pysbd
  import spacy
  import stanza
  from syntok.tokenizer import Tokenizer
  import syntok.segmenter
  from english_golden_rules import GOLDEN_EN_RULES
label_desc: Use image node_id 9 for calling a global function with example usage: benchmark(golden_rules, tokenize_func) and returns: percent_score