code: def _atexit_verify() -> None:
      
      if lib.TCOD_ctx.root:
          warnings.warn(
              "The libtcod root console was implicitly deleted.\n"
              "Make sure the 'with' statement is used with the root console to"
              " ensure that it closes properly.",
              ResourceWarning,
              stacklevel=2,
          )
          lib.TCOD_console_delete(ffi.NULL)
docs: Warns if the libtcod root console is implicitly deleted.