code: def _update_buttons_checked(self):
      for name, active in [("Pan", "PAN"), ("Zoom", "ZOOM")]:
          button = self._gtk_ids.get(name)
          if button:
              with button.handler_block(button._signal_handler):
                  button.set_active(self.mode.name == active)
  
imports: import logging
  import sys
  import matplotlib
  from matplotlib import _api, backend_tools, cbook
  from matplotlib._pylab_helpers import Gcf
  from matplotlib.backend_bases import _Backend, FigureCanvasBase, FigureManagerBase, NavigationToolbar2, TimerBase
  from matplotlib.backend_tools import Cursors
  import gi
  from gi.repository import Gdk, Gio, GLib, Gtk
label_desc: Use image node_id 4 for calling the _NavigationToolbar2GTK obj's underlying member method code with example usage: obj._update_buttons_checked() without return types