code: def test():
      pred_sequences = [
          ["O", "S-LOC", "O", "O", "B-PER", "E-PER"],
          ["O", "S-MISC", "O", "E-ORG", "O", "B-PER", "I-PER", "E-PER"],
      ]
      gold_sequences = [
          ["O", "B-LOC", "E-LOC", "O", "B-PER", "E-PER"],
          [
              "O",
              "S-MISC",
              "B-ORG",
              "E-ORG",
              "O",
              "B-PER",
              "E-PER",
              "S-LOC",
          ],
      ]
      print(score_by_token(pred_sequences, gold_sequences))
      print(score_by_entity(pred_sequences, gold_sequences))
  
imports: import sys
  import os
  import logging
  from collections import Counter, defaultdict
  from stanza.models.ner.utils import decode_from_bioes
label_desc: Use image node_id 3 for calling a global function with example usage: test() without return types