code: def setup_logger(log_file_path: str = None):
      import logging
  
      logging._warn_preinit_stderr = 0
      logger = logging.getLogger("DBNet.paddle")
      formatter = logging.Formatter(
          "%(asctime)s %(name)s %(levelname)s: %(message)s"
      )
      ch = logging.StreamHandler()
      ch.setFormatter(formatter)
      logger.addHandler(ch)
      if log_file_path is not None:
          file_handle = logging.FileHandler(log_file_path)
          file_handle.setFormatter(formatter)
          logger.addHandler(file_handle)
      logger.setLevel(logging.DEBUG)
      return logger
  
imports: import json
  import pathlib
  import time
  import os
  import glob
  import cv2
  import yaml
  from typing import Mapping
  import matplotlib.pyplot
  import numpy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
label_desc: Use image node_id 3 for calling a global function with example usage: setup_logger(log_file_path) and returns: logger