code: def simplify_ontonotes_to_worldwide(entity):
      if not entity or entity == "O":
          return "O"
  
      ent_iob, ent_type = entity.split("-", maxsplit=1)
  
      if ent_type in WORLDWIDE_ENTITY_MAPPING:
          if not WORLDWIDE_ENTITY_MAPPING[ent_type]:
              return "O"
          return ent_iob + "-" + WORLDWIDE_ENTITY_MAPPING[ent_type]
      raise ValueError("Unhandled entity: %s" % ent_type)
  
imports: import argparse
  import glob
  import json
  import os
  from stanza.utils.default_paths import get_default_paths
label_desc: Use image node_id 1 for calling a global function with example usage: simplify_ontonotes_to_worldwide(entity) and returns: str, unknown, str