code: def get_alpha_or_number(number, template):
      
      match = re.match(r".*\{alpha:(\d+a\d+d)\}$", template.strip())
      if match and match.groups():
          format = match.groups()[0]
          return to_alpha(number, format)
      return number
docs: Returns an Alphanumber that represents the number passed in, expressed
      as defined in the template. Otherwise, returns the number