def make_bench_generate_token(alg):
    """ Return function which will generate token for particular algorithm """
    def f(_):
        """ Generate token """
        privk = priv_keys[alg].get('default', priv_key)
        jwt.generate_jwt(payload, privk, alg, timedelta(seconds=5))
    return f
Return function which will generate token for particular algorithm