code: def FromString(cls, desc):
          
  
          parse_exp = Literal(u'run_time').suppress() + time_interval(u'interval')
  
          try:
              data = parse_exp.parseString(desc)
              return TimeBasedStopCondition(data[u'interval'][0])
          except ParseException:
              raise ArgumentError(u"Could not parse time based stop condition")
docs: Parse this stop condition from a string representation.
  
          The string needs to match:
          run_time number [seconds|minutes|hours|days|months|years]
  
          Args:
              desc (str): The description
  
          Returns:
              TimeBasedStopCondition