code: def setup_logger(verbose, logfile):
      
      level = logging.WARNING
      if verbose == 1:
          level = logging.INFO
      elif verbose > 1:
          level = logging.DEBUG
      if logfile:
          logging.basicConfig(filename=logfile, level=level, format=LOGGING_FORMAT)
      else:
          logging.basicConfig(level=level, format=LOGGING_FORMAT)
docs: Prepare root logger
      :param verbose: integer greater than 0 to indicate verbosity level