def findstring(self, string):
        """Returns the Enum object given a name string."""
        d = self.get_mapping()
        try:
            return d[string]
        except __HOLE__:
            raise ValueError("Enum string not found.")

# common enumerations
dataset/ETHPy150Open kdart/pycopia/aid/pycopia/aid.py/Enums.findstring