docs: def normalize_version(version):
      """
      Helper function to normalize version.
      Returns a comparable object.
      Args:
          version (str) version, e.g. "0.1.0"
      """
      rv = []
      for x in version.split("."):
          try:
              rv.append(int(x))
          except ValueError:
              for y in re.split("([0-9]+)", x):
                  if y == '':
                      continue
                  try:
                      rv.append(int(y))
                  except ValueError:
                      rv.append(y)
      return rv