code: def get_root_logger(log_file=None, log_level=logging.INFO):
      """Get root logger.
  
      Args:
          log_file (str, optional): File path of log. Defaults to None.
          log_level (int, optional): The level of logger.
              Defaults to logging.INFO.
  
      Returns:
          :obj:`logging.Logger`: The obtained logger
      """
      logger = get_logger(
          name="face_parsing", log_file=log_file, log_level=log_level
      )
  
      return logger
  
file_path: insightface/parsing/dml_csr/utils/logging.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import logging
  import torch.distributed
label_desc: Use image node_id 1 for calling a global function with example usage: get_root_logger(log_file, log_level) and returns: logger