def _GetShivasCIPD(api):
  """Install shivas CIPD package and return path to the binary."""
  packages_dir = api.path['cleanup'].join('packages')
  ensure_file = api.cipd.EnsureFile()
  ensure_file.add_package('infra/shivas/${platform}', 'prod')
  api.cipd.ensure(packages_dir, ensure_file)
  return packages_dir.join('shivas')