code: def InstallNanny(self):
      
      # We need to copy the nanny sections to the registry to ensure the
      # service is correctly configured.
      new_config = config.CONFIG.MakeNewConfig()
      new_config.SetWriteBack(config.CONFIG["Config.writeback"])
  
      for option in self.nanny_options:
        new_config.Set(option, config.CONFIG.Get(option))
  
      new_config.Write()
  
      args = [
          config.CONFIG["Nanny.binary"], "--service_key",
          config.CONFIG["Client.config_key"], "install"
      ]
  
      logging.debug("Calling %s", (args,))
      output = subprocess.check_output(
          args, shell=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE)
      logging.debug("%s", output)
docs: Install the nanny program.