code: def format_token_as_iob(token: str, tag: str) -> list:
      t_words = token.split()
      res = []
      if len(t_words) == 1:
          res.append(token + " B-" + tag)
      else:
          res.append(t_words[0] + " B-" + tag)
          for t_word in t_words[1:]:
              res.append(t_word + " I-" + tag)
      return res
  
file_path: stanza/stanza/utils/datasets/ner/convert_bsf_to_beios.py
imports: import argparse
  import logging
  import os
  import glob
  from collections import namedtuple
  import re
  from typing import Tuple
  from tqdm import tqdm
  from random import choices, shuffle
label_desc: Use image node_id 2 for calling a global function with example usage: format_token_as_iob(token, tag) and returns: res