code: def set_verbosity(args):
      '''determine the message level in the environment to set based on args.
      '''
      level = "INFO"
  
      if args.debug is True:
          level = "DEBUG"
      elif args.quiet is True:
          level = "QUIET"
  
      os.environ['MESSAGELEVEL'] = level
      os.putenv('MESSAGELEVEL', level)
      os.environ['SINGULARITY_MESSAGELEVEL'] = level
      os.putenv('SINGULARITY_MESSAGELEVEL', level)
      
      # Import logger to set
      from spython.logger import bot
      bot.debug('Logging level %s' %level)
      import spython
  
      bot.debug("Singularity Python Version: %s" % spython.__version__f set_verbosity(args):
      '''determine the message level in the environment to set based on args.
      '''
      level = "INFO"
  
      if args.debug is True:
          level = "DEBUG"
      elif args.quiet is True:
          level = "QUIET"
  
      os.environ['MESSAGELEVEL'] = level
      os.putenv('MESSAGELEVEL', level)
      os.environ['SINGULARITY_MESSAGELEVEL'] = level
      os.putenv('SINGULARITY_MESSAGELEVEL', level)
      
      # Import logger to set
      from spython.logger import bot
      bot.debug('Logging level %s' %level)
      import spython
  
      bot.debug("Singularity Python Version: %s" % spython.__version__)
docs: determine the message level in the environment to set based on args.