def METHOD_NAME(version):
  if version == 'nightly':
    # A false version number for nightly, greater than any actual release
    # version.
    return [float('inf')]
  assert version[0] == 'v'
  main_version, _, suffix = version[1:].partition('-')
  if not suffix:
    suffix = '}}}'  # this puts main releases after prerelease versions
  version_tuple = [int(x) for x in main_version.split('.')]
  return version_tuple + [suffix]