code: def loglevel_option(args, run):
      """
      Set the LogLevel.
  
      Loglevel either as 0 - 50 or as string: DEBUG(10),
      INFO(20), WARNING(30), ERROR(40), CRITICAL(50)
      """
      # TODO: sacred.initialize.create_run already takes care of this
  
      try:
          lvl = int(args)
      except ValueError:
          lvl = args
      run.root_logger.setLevel(lvl)
  
imports: from typing import Callable
  import inspect
  import re
  from sacred.run import Run
  from sacred.commands import print_config
  from sacred.utils import convert_camel_case_to_snake_case
label_desc: Use image node_id 6 for calling a global function with example usage: loglevel_option(args, run) without return types