def _GetVersionIndex(version_str):
  """Returns the version index from ycsb version string.

  Args:
    version_str: ycsb version string with format '0.<version index>.0'.

  Returns:
    (int) version index.
  """
  return int(version_str.split('.')[1])