@classmethod<EOL><INDENT>def loads(cls, name):<DEDENT>
if not isinstance(name, six.string_types):<EOL><INDENT>raise TypeError(u'<STR_LIT>'.format(<EOL>classname=cls.__name__, string_types=repr(six.string_types)<EOL>))<EOL><DEDENT>if not name or name.isspace():<EOL><INDENT>raise ValueError('<STR_LIT>')<EOL><DEDENT>return cls(name)<EOL>
Load a parsed name from a string.

        Raises:
            TypeError: when name isn't a type of `six.string_types`.
            ValueError: when name is empty or None.