code: def from_yang(self, text: str) -> ScalarValue:
          
          res = self.parse_value(text)
          if res is None:
              raise InvalidArgument(text)
          return res
docs: Parse value specified in a YANG module.
  
          Args:
              text: String representation of the value.
  
          Raises:
              InvalidArgument: If the receiver type cannot parse the text.