class_docstr: FileMapper
class_docstr_tok: ["FileMapper"]
docstr: Init 
docstr_tok: ["Init"]
code: def init(self, input_dir):
      """Init"""
      file_list = os.listdir(input_dir)
      new_file_list = []
      for file in file_list:
          new_file_list.append(input_dir + "/" + file)
      file_list = new_file_list
  
      with open(TEMP_FILE, "w") as f:
          json.dump(file_list, f)
  
      return len(file_list)
  
file_path: PGL/apps/PGLBox/sharding_tool/graph_sharding.py
imports: import sys
  import os
  import logging
  import time
  import json
  import shutil
  import argparse
  import multiprocessing
  from multiprocessing import Lock
  from multiprocessing import Process
label_desc: Use image node_id 1 for calling the FileMapper obj's underlying member method code with example usage: obj.init(input_dir) and returns: len