def kw_to_dict(**kwargs):
    """Returns a dictionary based on keyword arguments.

    Args:
        **kwargs: Arguments to convert.

    Returns:
        dict: A formatted dictionary.

    Example:
        ``kw_to_dict(foo='Hello', bar='World')`` returns ``{'foo': 'Hello', 'bar': 'World'}``
    """
    return {k: v for k, v in kwargs.items()}