code: def init():
      """init"""
      sys.stdout.flush()
      os.system("mkdir %s > /dev/null 2>&1" % base_graph_data_path)
      all_edge_path = list_files(input_data_path)
      print("all edge path is %s" % all_edge_path)
      final_file_list = []
      for edge_path in all_edge_path:
          os.system(
              "mkdir -p %s/%s > /dev/null 2>&1"
              % (base_graph_data_path, edge_path.split("/")[-1])
          )
          hdfs_file_list = list_files(edge_path)
          final_file_list.extend(hdfs_file_list)
      with open(".download_locker", "w") as f:
          json.dump(final_file_list, f)
  
file_path: PGL/apps/PGLBox/scripts/download_graph_data.py
imports: import os
  import sys
  import math
  import time
  import json
  import subprocess
  import multiprocessing
  from multiprocessing import Process
  from multiprocessing import Lock
label_desc: Use image node_id 2 for calling a global function with example usage: init() without return types