code: def construct_from_string(cls, string):
          
          if string == cls.name:
              return cls()
          raise TypeError("Cannot construct a '{}' from "
                          "'{}'".format(cls, string))
docs: Construction from a string, raise a TypeError if not
          possible