code: def verbosityToLogLevel(verbosity):
      
      ret = 0
      if verbosity == 1:
          ret = logging.INFO
      elif verbosity >= 2:
          ret = logging.DEBUG
      return ret
docs: Returns the specfied verbosity level interpreted as a logging level.