<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def enable_all_cpu(self):
        '''
        Enable all offline cpus
        '''
        for cpu in self.__get_ranges("offline"):
            fpath = path.join("cpu%i"%cpu,"online")
            self.__write_cpu_file(fpath, b"1")