def _find_key(input_dict, value):
    """Finds key in a dictionary given a value

    Args:
        input_dict (dict): A dictionary
        value (str, int): a value to search for

    Returns:
        (str, int):  the key for the given entry

    """
    return next((k for k, v in input_dict.items() if v == value), None)