code: def from_string(cls, s):
          
          for num, text in cls._STATUS2STR.items():
              if text == s:
                  return cls(num)
          else:
              raise ValueError("Wrong string %s" % s)
docs: Return a `Status` instance from its string representation.