def METHOD_NAME(self, cores: List[int], status: int):
    cpu_status_path = "/sys/devices/system/cpu/cpu{cpu_id}/online"
    for core in cores:
        logical_cores = self._cpu_mapping[core]
        for logical_core in logical_cores[1:]:
            path = cpu_status_path.format(cpu_id=logical_core["core"])
            execute(
                cmd="echo {status} | sudo tee {path}".format(status=status, path=path),
                shell=True,
            )