code: def get_id_to_path_dict(self):
      id2path = {}
      globs = glob.iglob(
          os.path.join(self.args.image_root, "*", "*.npy")
      )
      # NOTE: based on assumption that image_id is unique across all splits
      for image_path in globs:
          path = "/".join(image_path.split("/")[-2:])
          image_id = int(image_path[-16:-4])
          id2path[image_id] = path
  
      return id2path
  
file_path: mmf/tools/scripts/visual_dialog/build_imdb.py
imports: import argparse
  import glob
  import json
  import os
  from mmf.utils.text import tokenize
label_desc: Use image node_id 3 for calling the IMDBBuilder obj's underlying member method code with example usage: obj.get_id_to_path_dict() and returns: id2path