code: def verbosity_to_level(verbosity) -> int:
      if verbosity is not None:
          if verbosity == 0:
              return logging.WARNING
          elif verbosity == 1:
              return logging.INFO
          elif verbosity >= 2:
              return logging.DEBUG
      return logging.WARNING
  
label_desc: Use image node_id 1 for calling a global function with example usage: verbosity_to_level(verbosity) and returns: logging, logging, logging, logging