@classmethod<EOL><INDENT>def construct_from_string(cls, string):<DEDENT>
if string == cls.name:<EOL><INDENT>return cls()<EOL><DEDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>".format(cls, string))<EOL>
Construction from a string, raise a TypeError if not
possible