def METHOD_NAME(self):
    filter_file(
        "${CMAKE_PREFIX_PATH}/hsa",
        "${HSA_RUNTIME_INC_PATH}",
        "src/CMakeLists.txt",
        string=True,
    )
    kwargs = {"ignore_absent": False, "backup": False, "string": False}
    with working_dir("script"):
        match = "^#!/usr/bin/python[23]"
        python = self.spec["python"].command.path
        substitute = "#!{python}".format(python=python)
        files = ["check_trace.py", "gen_ostream_ops.py", "hsaap.py"]
        filter_file(match, substitute, *files, **kwargs)