def _CheckNvidiaSmiExists(vm):
  """Returns whether nvidia-smi is installed or not"""
  resp, _ = vm.RemoteHostCommand('command -v nvidia-smi',
                                 ignore_failure=True,
                                 suppress_warning=True)
  if resp.rstrip() == "":
    return False
  return True