def METHOD_NAME():
    args = parse_args()
    coco_path = args.coco_path
    out_dir = osp.join(coco_path, args.out_dir_name)
    nproc = args.nproc
    mkdir_or_exist(osp.join(out_dir, 'train2017'))
    mkdir_or_exist(osp.join(out_dir, 'val2017'))
    train_list = glob(osp.join(coco_path, 'stuffthingmaps/train2017', '*.png'))
    val_list = glob(osp.join(coco_path, 'stuffthingmaps/val2017', '*.png'))
    assert (len(train_list) +
            len(val_list)) == COCO_LEN, 'Wrong length of list {} & {}'.format(
                len(train_list), len(val_list))
    if args.nproc > 1:
        track_parallel_progress(
            partial(convert_to_trainID, out_mask_dir=out_dir, is_train=True),
            train_list,
            nproc=nproc)
        track_parallel_progress(
            partial(convert_to_trainID, out_mask_dir=out_dir, is_train=False),
            val_list,
            nproc=nproc)
    else:
        track_progress(
            partial(convert_to_trainID, out_mask_dir=out_dir, is_train=True),
            train_list)
        track_progress(
            partial(convert_to_trainID, out_mask_dir=out_dir, is_train=False),
            val_list)
    print('Done!')