code: def set_level(level_name):
      for x in (
          logging.DEBUG,
          logging.ERROR,
          logging.FATAL,
          logging.INFO,
          logging.WARN,
      ):
          if logging.getLevelName(x) == level_name.upper():
              logging.getLogger().setLevel(x)
              return
  
imports: import logging
  from absl import flags
label_desc: Use image node_id 1 for calling a global function with example usage: set_level(level_name) without return types