docs: def create_time_from_text(text):
      """
      Parse a time in the form ``hh:mm`` or ``hhmm`` (or even ``hmm``) and return a :class:`datetime.time` object. If no
      valid time can be extracted from the given string, :exc:`ValueError` will be raised.
      """
      text = text.replace(':', '')
  
      if not re.match('^\d{3,}$', text):
          raise ValueError("Time must be numeric")
  
      minutes = int(text[-2:])
      hours = int(text[0:2] if len(text) > 3 else text[0])
  
      return datetime.time(hours, minutes)