def METHOD_NAME(space_format: Type[ExecutableModelSpace], nn: ModuleType):
    class Net(ModelSpace, label_prefix='model'):
        def __init__(self):
            super().__init__()
            self.block = Repeat(AddOne(), (3, 5))
        def forward(self, x):
            return self.block(x)
    model = space_format.from_model(Net())
    assert len(model.simplify()) == 1
    label = list(model.simplify())[0]
    for t in [3, 4, 5]:
        selected_model = model.freeze({label: t}).executable_model()
        if not issubclass(space_format, GraphModelSpace):
            assert isinstance(list(selected_model.children())[0], nn.Sequential)
        assert (selected_model(torch.zeros(1, 16)) == t).all()