def all_keys_in_dict(in_dict, keys):
    """ Check that all keys are present in a dictionary.

        Args:
            in_dict (dict): Input dict.
            keys (list): Keys that must be present in ``in_dict``.

        Returns:
            True if all ``keys`` are in ``in_dict``, False otherwise.

        >>> all_keys_in_dict(
        ... {'key1': '', 'key2': '', 'key3': ''}, ['key1', 'key2'])
        True
        >>> all_keys_in_dict(
        ... {'key1': '', 'key2': '', 'key3': ''}, ['key1', 'key4'])
        False

    """
    return all(k in in_dict for k in keys)