def METHOD_NAME():
    """Check a ValueError is raised if the models have different scenarios."""
    path = Path(os.path.dirname(__file__)) / "models" / "two-dependent-sub-models"
    multi_model = MultiModel.load(path / "integrated-model.json")
    # Define the same scenarios in each sub-model
    Scenario(multi_model.models["model1"], size=10, name="A")
    Scenario(multi_model.models["model1"], size=2, name="B")
    Scenario(multi_model.models["model2"], size=10, name="A")
    Scenario(multi_model.models["model2"], size=2, name="B")
    # Only run the first two scenarios in model1
    multi_model.models["model1"].scenarios.user_combinations = [[0, 0], [1, 0]]
    with pytest.raises(ValueError):
        multi_model.run()