code: def load_xml_nkjp(nkjp_dir):
      subfolder_to_annotations = {}
      subfolders = sorted(os.listdir(nkjp_dir))
      for subfolder in tqdm(
          [
              name
              for name in subfolders
              if os.path.isdir(os.path.join(nkjp_dir, name))
          ]
      ):
          out = extract_entities_from_subfolder(subfolder, nkjp_dir)
          if out:
              subfolder_to_annotations[subfolder] = out
          else:
              print(subfolder, "has no ann_named.xml file")
  
      return subfolder_to_annotations
  
imports: import argparse
  import json
  import os
  import random
  import tarfile
  import tempfile
  from tqdm import tqdm
label_desc: Use image node_id 11 for calling a global function with example usage: load_xml_nkjp(nkjp_dir) and returns: subfolder_to_annotations