def METHOD_NAME(target, dev):
    backbone = _get_backbone()
    pred_sinfo = relax.TensorStructInfo((1, 5), "float32")
    setup_trainer = SetupTrainer(
        MSELoss(reduction="sum"),
        SGD(0.01),
        [pred_sinfo, pred_sinfo],
    )
    train_mod = setup_trainer(backbone)
    ex = relax.build(train_mod, target)
    vm = relax.VirtualMachine(ex, dev)
    trainer = Trainer(train_mod, vm, dev, False)
    dataset = _make_dataset()
    # parameters are not inited
    with pytest.raises(TVMError):
        trainer.predict(dataset[0][0])
    with pytest.raises(TVMError):
        trainer.update(dataset[0][0], dataset[0][1])