def create_value(self, value_or_name):
        if isinstance(value_or_name, EnumValue):
            return self.add_value(value_or_name)

        return self.add_value(EnumValue(value_or_name))
Create a new enum value by its name, add it to this enum, and return it.
dataset/ETHPy150Open pdef/pdef/compiler/pdefc/lang.py/Enum.create_value