@classmethod
def from_string(cls, value):
    """
        Convert a string version of the enum to its enum type.

        Args:
            value (str): A string that you wish to convert to an Enum value.
        Returns:
            EnumSymbol: The symbol corresponding to the value.
        Raises:
            ValueError: If no symbol matches the given value.
        """
    try:
        return cls._reg[value]
    except KeyError:
        raise ValueError('Invalid value for %r: %r' % (cls.__name__, value))
