code: def create_logger(output_file):
      logger = logging.getLogger("grit_logger")
      logger.setLevel(logging.INFO)  # set logger output level
      formatter = logging.Formatter("%(asctime)s - %(message)s")
  
      fh = logging.FileHandler(output_file)
      fh.setLevel(logging.INFO)
      fh.setFormatter(formatter)
  
      console = logging.StreamHandler()
      console.setLevel(logging.INFO)
  
      logger.addHandler(fh)
      logger.addHandler(console)
  
      return logger
  
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 1 for calling a global function with example usage: create_logger(output_file) and returns: logger