code: def create_manifest(manifest_path, manifest, root_dir):
      records = [("@FILE", "FILE")]
  
      for entry in manifest:
          (annot, image) = entry
          assert os.path.exists(image), "Path {} not found".format(
              image
          )
          assert os.path.exists(annot), "Path {} not found".format(
              annot
          )
  
          records.append(
              (
                  os.path.relpath(image, root_dir),
                  os.path.relpath(annot, root_dir),
              )
          )
      np.savetxt(manifest_path, records, fmt="%s\t%s")
      print(
          "Writing manifest file ({} records) to: {}".format(
              len(manifest), manifest_path
          )
      )
  
file_path: neon/examples/ssd/datasets/ingest_utils.py
imports: from __future__ import print_function
  import os
  import json
  import numpy
  from zipfile import ZipFile
  from scipy.ndimage import imread
  from scipy.misc import imsave, imresize
label_desc: Use image node_id 7 for calling a global function with example usage: create_manifest(manifest_path, manifest, root_dir) without return types