def __init__(self, **kwargs):  # pylint: disable=W0613
        super(Device, self).__init__(**kwargs)
        if not self.path_module:
            raise NotImplementedError('path_module must be specified by the deriving classes.')
        libpath = os.path.dirname(os.__file__)
        modpath = os.path.join(libpath, self.path_module)
        if not modpath.lower().endswith('.py'):
            modpath += '.py'
        try:
            self.path = imp.load_source('device_path', modpath)
        except __HOLE__:
            raise DeviceError('Unsupported path module: {}'.format(self.path_module))
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/core/device.py/Device.__init__