code: def loads(cls, name):
          
          if not isinstance(name, six.string_types):
              raise TypeError(u'arguments to {classname} must be of type {string_types}'.format(
                  classname=cls.__name__, string_types=repr(six.string_types)
              ))
          if not name or name.isspace():
              raise ValueError('name must not be empty')
  
          return cls(name)
docs: 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.