def METHOD_NAME(self, with_validation: bool):
    result_dir = self.run(
        self.FIXTURES_ROOT / "integrations" / "torch" / "train.jsonnet",
        include_package=[
            "test_fixtures.integrations.common",
            "test_fixtures.integrations.torch",
        ],
        overrides=""
        if with_validation
        else json.dumps(
            {"steps.train.validation_split": None, "steps.train.validate_every": None}
        ),
    )
    assert (result_dir / "train" / "data.pt").is_file()
    assert (result_dir / "train" / "work" / "weights.pt").is_file()
    assert (
        result_dir / "train" / "work" / "checkpoint_state_latest" / "worker0_model.pt"
    ).is_file()
    assert (
        result_dir / "train" / "work" / "checkpoint_state_best" / "worker0_optimizer.pt"
    ).is_file()
    assert (
        result_dir / "train" / "work" / "checkpoint_state_best" / "worker0_trainer.pt"
    ).is_file()