code: def parse_month(text: str) -> int:
      '''Parse month string into integer.'''
      text = text.lower()
      try:
          return MONTH_MAP[text]
      except KeyError:
          pass
  
      try:
          return MONTH_MAP[text[:3]]
      except KeyError:
          pass
  
      raise ValueError('Month {} not found.'.format(repr(text))f parse_month(text: str) -> int:
      '''Parse month string into integer.'''
      text = text.lower()
      try:
          return MONTH_MAP[text]
      except KeyError:
          pass
  
      try:
          return MONTH_MAP[text[:3]]
      except KeyError:
          pass
  
      raise ValueError('Month {} not found.'.format(repr(text)))
docs: Parse month string into integer.