code: def main(args):
      logger = create_logger(args.log_name)
      all_file_name = [
          os.path.join(args.image_dir, file)
          for file in os.listdir(args.image_dir)
          if file.endswith(".tar")
      ]
      all_file_name.sort()
      func = partial(
          tar_processing, output_dir=args.output_dir, logger=logger
      )
      with Pool(processes=args.num_process) as pool:
          result = pool.imap(func=func, iterable=all_file_name)
  
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 6 for calling a global function with example usage: main(args) without return types