code: def convert_xml_to_json(
      input_file, output_file, difficult, img_reshape=None
  ):
      trimmed = parse_single_file(input_file, difficult, img_reshape)
      if validate_metadata(trimmed, input_file):
          result = json.dumps(
              trimmed, sort_keys=True, indent=4, separators=(",", ": ")
          )
          with open(output_file, "w") as f:
              f.write(result)
  
file_path: neon/examples/ssd/datasets/convert_xml_to_json.py
imports: import json
  import glob
  import collections
  import os
  from os.path import join
  import xml.etree.ElementTree
  from collections import defaultdict
  import argparse
label_desc: Use image node_id 4 for calling a global function with example usage: convert_xml_to_json(input_file, output_file, difficult, img_reshape) without return types