code: def initialize(logging_config=None, extra=None):
      if extra is not None:
          from logging import Logger
  
          class _Logger(Logger):
              __extra = extra.copy()
  
              def _log(
                  self,
                  level,
                  msg,
                  args,
                  exc_info=None,
                  extra=None,
                  **kwargs,
              ):
                  extra = extra or {}
                  extra.update(self.__extra)
                  super(_Logger, self)._log(
                      level,
                      msg,
                      args,
                      exc_info=exc_info,
                      extra=extra,
                      **kwargs,
                  )
  
          Logger.manager.loggerClass = _Logger
  
      if logging_config is not None:
          # Use deepcopy since Python's logging infrastructure might modify the dict
          logging.config.dictConfig(deepcopy(dict(logging_config)))
  
imports: import logging.config
  from copy import deepcopy
  from pathlib2 import Path
label_desc: Use image node_id 2 for calling a global function with example usage: initialize(logging_config, extra) without return types