def METHOD_NAME(tmp_path: Path):
    # Write default configuration file
    args = {
        "encoder": "stft",
        "encoder_conf": {"n_fft": 64, "hop_length": 32},
        "xxx": "invalid",
    }
    (tmp_path / "enh").mkdir(parents=True, exist_ok=True)
    with open(tmp_path / "enh" / "invalid_inference.yaml", "w") as f:
        yaml_no_alias_safe_dump(args, f, indent=4, sort_keys=False)
    return tmp_path / "enh" / "invalid_inference.yaml"