code: def _register_info(self, server):
      
      server_url = urllib.parse.urlparse(server.get_url())
      info = manager.TensorBoardInfo(
          version=version.VERSION,
          start_time=int(time.time()),
          port=server_url.port,
          pid=os.getpid(),
          path_prefix=self.flags.path_prefix,
          logdir=self.flags.logdir,
          db=self.flags.db,
          cache_key=self.cache_key,
      )
      atexit.register(manager.remove_info_file)
      manager.write_info_file(info)
docs: Write a TensorBoardInfo file and arrange for its cleanup.
  
      Args:
        server: The result of `self._make_server()`.