code: def get_level(lvl):
      """Transforms the logging level passed on the commandline into a proper
      logging level name.
      """
      try:
          return logging._levelNames[lvl]
      except Exception:
          return logging.INFO
  
imports: import warnings
  import logging
  from dipy import __version__
  from dipy.workflows.base import IntrospectiveArgumentParser
label_desc: Use image node_id 1 for calling a global function with example usage: get_level(lvl) and returns: logging, logging