def code_response(**kwargs):
    aresp = AuthorizationResponse()
    _areq = kwargs["areq"]
    try:
        aresp["state"] = _areq["state"]
    except __HOLE__:
        pass
    aresp["code"] = kwargs["scode"]
    # TODO Add 'iss' and 'client_id'
    if kwargs['myself']:
        aresp['iss'] = kwargs['myself']
    aresp['client_id'] = _areq['client_id']
    add_non_standard(_areq, aresp)
    return aresp
dataset/ETHPy150Open rohe/pyoidc/src/oic/oauth2/provider.py/code_response