def get_or_default(mapping, key, default_func=lambda: 'UNK'):
    """Get a key or call a func if not found in dict

    Notes:
        - UNK = unknown
    """
    try:
        return mapping[key]
    except KeyError:
        return default_func()