<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def kv_format_dict(d, keys=None, separator=DEFAULT_SEPARATOR):
 """Formats the given dictionary ``d``. For more details see :func:`kv_format`. :param collections.Mapping d: Dictionary containing values to format. :param collections.Iterable keys: List of keys to extract from the dict. :param str separator: Value between two pairs. :return: Key-Value formatted content generated from ``d``. :rtype: :data:`six.text_type <six:six.text_type>` """

    return _format_pairs(dump_dict(d, keys), separator=separator)