code: def _expand_time_english(match: "re.Match") -> str:
      hour = int(match.group(1))
      past_noon = hour >= 12
      time = []
      if hour > 12:
          hour -= 12
      elif hour == 0:
          hour = 12
          past_noon = True
      time.append(_expand_num(hour))
  
      minute = int(match.group(6))
      if minute > 0:
          if minute < 10:
              time.append("oh")
          time.append(_expand_num(minute))
      am_pm = match.group(7)
      if am_pm is None:
          time.append("p m" if past_noon else "a m")
      else:
          time.extend(list(am_pm.replace(".", "")))
      return " ".join(time)
  
imports: import re
  import inflect
label_desc: Use image node_id 2 for calling a global function with example usage: _expand_time_english(match) and returns: str