code: def get_logger(name: Optional[str] = None):
      """
      Util function to set up a simple logger that writes
      into stderr. The loglevel is fetched from the LOGLEVEL
      env. variable or WARNING as default. The function will use the
      module name of the caller if no name is provided.
  
      Args:
          name: Name of the logger. If no name provided, the name will
                be derived from the call stack.
      """
  
      # Derive the name of the caller, if none provided
      # Use depth=2 since this function takes up one level in the call stack
      return _setup_logger(name or _derive_module_name(depth=2))
  
file_path: pytorch/torch/distributed/elastic/utils/logging.py
imports: import inspect
  import logging
  import os
  import warnings
  from typing import Optional
  from torch.distributed.elastic.utils.log_level import get_log_level
label_desc: Use image node_id 1 for calling a global function with example usage: get_logger(name) and returns: _setup_logger