code: def parse_isotime(timestr):
      
      try:
          return iso8601.parse_date(timestr)
      except iso8601.ParseError as e:
          raise ValueError(six.text_type(e))
      except TypeError as e:
          raise ValueError(six.text_type(e))
docs: Parse time from ISO 8601 format.