def get_config_part(config_parent, match_key, match_value):
    """
    helper function to filter a dict by a dict key

    :param dict_: ``dict``
    :param key: dict key
    :param value: dict key value

    :returns: filtered ``dict``
    """

    return {k: v for (k, v) in config_parent.items() if v[match_key] == match_value}