code: def count_download_image(download_json_dir, logger):
      parquet_files = [
          f
          for f in os.listdir(download_json_dir)
          if f.endswith(".json")
      ]
      len = 0
  
      for file in parquet_files:
          with open(os.path.join(download_json_dir, file), "r") as f:
              data = json.load(f)
              len = len + int(data["successes"])
          logger.info(
              file
              + "has "
              + str(data["successes"])
              + " successful images"
          )
  
      logger.info(
          "all files finished.",
          str(len),
          "images have been successfully downloaded.",
      )
  
file_path: mmdetection/tools/dataset_converters/grit_processing.py
imports: import argparse
  import json
  import logging
  import os
  import tarfile
  from functools import partial
  from multiprocessing import Pool
label_desc: Use image node_id 2 for calling a global function with example usage: count_download_image(download_json_dir, logger) without return types