def dict_search_value_as_key(d, v):
    """smp_base.common.dict_search_value_as_key

    Search for value `v` in dict `d` and return its key `k` if found.
    """
    for k_, v_ in list(d.items()):
        if v == v_: return k_
    return None