code: def validate_metadata(jobj, file):
      boxlist = jobj["object"]
      if not isinstance(boxlist, collections.Sequence):
          print("{0} is not a sequence").format(file)
          return False
  
      index = 0
      for box in boxlist:
          if "part" in box:
              parts = box["part"]
              if not isinstance(parts, collections.Sequence):
                  print("parts {0} is not a sequence").format(file)
                  return False
          index += 1
      return True
  
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 2 for calling a global function with example usage: validate_metadata(jobj, file) and returns: True, False, False