def METHOD_NAME():
    with pytest.raises(AssertionError):
        BranchformerEncoder(
            20,
            merge_method="fixed_ave",
            cgmlp_weight=-1.0,
        )
    with pytest.raises(ValueError):
        BranchformerEncoder(
            20,
            num_blocks=2,
            cgmlp_weight=[0.1, 0.1, 0.1],
        )