def METHOD_NAME(self, kwargs):
    headers = kwargs.get("headers", None)
    if not headers:
        headers = kwargs["headers"] = {}
    elif type(headers) != dict:
        raise JsonApiError(
            f"incorrect type for keyword 'headers' MUST be Dictionary: {headers}"
        )
    if "json" in kwargs and kwargs["json"]:
        headers["Content-Type"] = "application/json"
    token = kwargs.get("token", None)
    if self.authentication and not token:
        token = self.authentication.token()
    if token:
        headers["User-Agent"] = self.USER_AGENT
        headers["Authorization"] = token
    else:
        headers["User-Agent"] = self.USER_AGENT
    return headers