@classmethod
def from_name(cls, name):
    """Convert name to enum element.

        :param str name:
            String with name to convert.
        :returns:
            Enum class object.
        :raises:
            NotImplementedError
        """
    for item in cls:
        if item.name == name:
            return item
    raise NotImplementedError("'{}' is no name of '{}'".format(name, cls.
        __name__))
