code: def get_logger(name):
      """
      Internally calls the logging.getLogger function with the `name` argument to create or
      retrieve a logger object. It is recommended to pass __name__ as argument when calling
      get_logger. The returned logger object logs to the standard error stream and formats
      the messages appropriately.
  
      Parameters
      ----------
      name
          The name that gets passed to the logger.getLogger function.
  
      Returns
      -------
      A logger instance with the given name.
      """
  
      logger = logging.getLogger(name)
  
      return logger
  
file_path: darts/darts/logging.py
imports: import logging
  import os
  import time
  import warnings
label_desc: Use image node_id 1 for calling a global function with example usage: get_logger(name) and returns: logger