code: def _log_level_for_arg(arg):
      if arg is not None:
          return arg
      try:
          return int(os.environ["LOG_LEVEL"])
      except (KeyError, TypeError):
          return logging.INFO
  
imports: import logging
  import logging.config
  import os
  import sys
  from guild import ansi_util
label_desc: Use image node_id 2 for calling a global function with example usage: _log_level_for_arg(arg) and returns: arg, int, logging