code: def levelize(levelname):
      """Convert levelname to level only if it is levelname"""
      if isinstance(levelname, str):
          return logging.getLevelName(levelname)
      else:
          return levelname
  
file_path: generalized-moe/domainbed/lib/logger.py
imports: import sys
  import logging
label_desc: Use image node_id 1 for calling a global function with example usage: levelize(levelname) and returns: logging, levelname