def get_pids_of(self, process_name):
        # result should be a column of PIDs with the first row as "PID" header
        result = self.execute('ps -C {} -o pid'.format(process_name),  # NOQA
                              check_exit_code=False).strip().split()
        if len(result) >= 2:  # at least one row besides the header
            return map(int, result[1:])
        else:
            return []
This method is being called by Pylease when all the extensions are being loaded.  All the initialisation code must be implemented
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/common/linux/device.py/LinuxDevice.get_pids_of--crossover with--dataset/ETHPy150Open n9code/pylease/pylease/ext/__init__.py/Extension.load