def METHOD_NAME(
        self, lt_ctx_fast, medium_raw, medium_raw_float32,
        method, bench, typ, benchmark):
    ctx = lt_ctx_fast
    if typ == 'uint16':
        medium_raw = medium_raw
    elif typ == 'float32':
        medium_raw = medium_raw_float32
    else:
        raise ValueError()
    ds = _mk_ds(method=method, ctx=ctx, raw_ds=medium_raw)
    if bench == 'libertem':
        _libertem_bench(ctx=ctx, ds=ds, benchmark=benchmark)
    elif bench == 'mmap':
        _mmap_bench(ds=ds, benchmark=benchmark)
    else:
        raise ValueError()