code: def consume(self, key, default=None, current=None, print_on_success=False):
          
  
          value = self._configuration.pop(key, default)
          if current:
              return current
          if value and print_on_success:
              LOG.debug("Found %s: `%s`", key, ", ".join(value))
          if value and key in self._deprecated:
              LOG.warning(
                  "Configuration file uses deprecated item `%s`: "
                  "please migrate to its replacement `%s`",
                  key,
                  self._deprecated[key],
              )
          return value
docs: Consume a key from the configuration. When a key is consumed, it
          is removed from the configuration.
  
          If not found, the default is returned. If the current value is not
          None, it will be returned instead, but the key will still be
          considered consumed.