def METHOD_NAME(config: Mapping[str, Any]):
    token_refresh_endpoint = f'{"https://api.primetric.com/auth/token/"}'
    client_id = config["client_id"]
    client_secret = config["client_secret"]
    refresh_token = None
    headers = {"content-type": "application/x-www-form-urlencoded"}
    data = {"grant_type": "client_credentials", "client_id": client_id, "client_secret": client_secret, "refresh_token": refresh_token}
    try:
        response = requests.request(method="POST", url=token_refresh_endpoint, data=data, headers=headers)
    except Exception as e:
        raise Exception(f"Error while refreshing access token: {e}") from e
    return response