def create_dir_on_global_main_process(dir):
    if ((comm.get_rank() == 0) and dir):
        PathManager.mkdirs(dir)
def create_dir_on_global_main_process(dir):
    if ((comm.get_rank() == 0) and dir):
        PathManager.mkdirs(dir)