def METHOD_NAME(self):
    if "stderr" in self.test.comparison_files:
        stderr_file = self.test.comparison_files["stderr"]
        stderr_test_file = str(
            self.working_dir.joinpath("test_" + self.test_id).joinpath(
                os.path.basename(str(self.working_dir.joinpath(stderr_file)))
            )
        )
        with open(stderr_file, "r") as f, open(stderr_test_file, "w") as tmp_f:
            contents = [self.replace_line(line) for line in f]
            for line in contents:
                tmp_f.write(line)
        self.test.comparison_files["stderr"] = str(stderr_test_file)