def METHOD_NAME(self):
    filename = "temp.yaml"
    dict_to_write = {"a_val": {"param": "nonexistent_variable"}}
    with open(filename, "w") as fp:
        yaml.dump(dict_to_write, fp, sort_keys=False)
    return filename, dict_to_write