def find_dict_in_list(target: list[dict], dict_key, lookup_value) -> dict:
    """Find a dict in a list of dict by dict key"""
    return next(iter(x for x in target if x.get(dict_key) == lookup_value), {})