def try_get_key(frame, key, default_value=-1):
    """Return `key` in `frame` if it exists; otherwise return `default_value."""
    try:
        return frame[key]
    except KeyError:
        return default_value