def METHOD_NAME(d, key):
    """
    Lookup value from dictionary. Returns None if key ``key``
    is not present in ``d``.
    Example:
    {% load simple_filters %}
    {{ dict|safe_lookup:key }}
    """
    return d.get(key)