def get_dict_keys_from_val(d, val):
    """Get keys whose value in a dictionary match a given value.
    
    Args:
        d (dict): Dictionary from which to get keys.
        val (Any): Value whose matching keys will be extracted.

    Returns:
        List[Any]: List of keys whose values match ``val`` in ``d``.

    """
    return [k for k, v in d.items() if v == val]