from typing import Any
from typing import Mapping


def get_headers(**kwargs: Any) -> Mapping:
    """Return headers based on given key-value arguments."""
    headers = {}
    if kwargs.get('json'):
        headers['Content-Type'] = 'application/json'
    if kwargs.get('multipart'):
        headers['Content-Type'] = 'multipart/form-data'
    if kwargs.get('token'):
        headers['Authorization'] = 'Bearer ' + kwargs.get('token', '')
    return headers