def METHOD_NAME(
    test_case, act_type, ndim, zerodim, placement, sbp
):
    m = build_module(act_type)
    m.train(random())
    dims = [random(1, 3) * 8 for i in range(ndim)]
    dims[zerodim] = 0
    x = random_tensor(ndim, *dims).to_global(placement=placement, sbp=sbp)
    y = m(x)
    return y