code: def dict_pop_or(d, key, default=None):
      
      val = default
      with suppress(KeyError):
          val = d.pop(key)
      return val
docs: Try popping a key from a dict.
          Instead of raising KeyError, just return the default value.