def __call__(self, value):
        if value not in self.__dict__:
            raise ValueError('Not enum value: {}'.format(value))
        return self.__dict__[value]
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/external/daq_server/src/daqpower/common.py/Enum.__call__/original