def METHOD_NAME(level):
  key = MD.AddSshKey(MM.SSH_KEYS, level)
  MD.TestSshLogin(key, as_root=True)
  MD.RemoveSshKey(key, MM.SSH_KEYS, level)
  MD.TestSshLogin(key, as_root=True, expect_fail=True)
  # Re-add a new ssh key and check if it still has root privileges.
  new_key = MD.AddSshKey(MM.SSH_KEYS, level)
  MD.TestSshLogin(new_key, as_root=True)
  MD.RemoveSshKey(new_key, MM.SSH_KEYS, level)
  MD.TestSshLogin(new_key, as_root=True, expect_fail=True)