code: def ver_str_to_tuple(ver_str):
      
      out = []
      for x in ver_str.split("."):
          try:
              x = int(x)
          except ValueError:
              pass
          out.append(x)
      return tuple(out)
docs: Convert a version string into a version tuple.