code: def get_logger(name=__name__, level=logging.INFO) -> logging.Logger:
      """Initialize multi-GPU-friendly python logger."""
      logger = logging.getLogger(name)
      logger.setLevel(level)
  
      # this ensures all logging levels get marked with the rank zero decorator
      # otherwise logs would get multiplied for each GPU process in multi-GPU setup
      for level in (
          "debug",
          "info",
          "warning",
          "error",
          "exception",
          "fatal",
          "critical",
      ):
          setattr(logger, level, rank_zero_only(getattr(logger, level)))
  
      return logger
  
imports: import logging
  import math
  import os
  from functools import wraps
  from typing import Any, Callable, Optional
  import numpy
  import opt_einsum
  import torch
  import torch.nn
  import torch.nn.functional
  from einops import rearrange, repeat
  from espnet2.asr.state_spaces.components import Activation, DropoutNd, LinearActivation
label_desc: Use image node_id 3 for calling a global function with example usage: get_logger(name, level) and returns: logger