def compare_version(lhs, rhs):
  """Compare two versions.
  
  Parameters
  ----------
  lhs : tuple
    tuple of three integers (major, minor, patch)
  rhs : tuple
    tuple of three integers (major, minor, patch)

  Returns
  -------
  int
    Returns 0 if lhs and rhs are equal, 1 if lhs is bigger than rhs, otherwise -1. 
  """
  if lhs == rhs:
    return 0
  elif lhs > rhs:
    return 1
  else:
    return -1