code: def getLogger(name=None):
      """
      Get a new logger, configuring logging first if it hasn't been done yet.
      """
      global logging_initialized
      if not logging_initialized:
          configure_logging()
          logging_initialized = True
  
      return logging.getLogger(name)
  
imports: import logging
  import os
  from logging.config import dictConfig
label_desc: Use image node_id 2 for calling a global function with example usage: getLogger(name) and returns: logging