def METHOD_NAME(self):
    species = stdpopsim.get_species("HomSap")
    model = species.get_demographic_model("AshkSub_7G19")
    good_kwargs = dict(
        demographic_model=model,
        contig=species.get_contig("chr1"),
        samples={"YRI": 5, "CHB": 5, "CEU": 5},
        dry_run=True,
    )
    bad_kwargs = good_kwargs.copy().update(nonexistent_param=None)
    for engine in stdpopsim.all_engines():
        engine.simulate(**good_kwargs)
        with pytest.raises(TypeError):
            engine.simulate(**bad_kwargs)