code: def configure_event(self, widget, event):
      if widget.get_property("window") is None:
          return
      w = event.width * self.device_pixel_ratio
      h = event.height * self.device_pixel_ratio
      if w < 3 or h < 3:
          return  # empty fig
      # resize the figure (in inches)
      dpi = self.figure.dpi
      self.figure.set_size_inches(w / dpi, h / dpi, forward=False)
      return False
  
imports: import functools
  import logging
  import os
  from pathlib import Path
  import matplotlib
  from matplotlib import _api, backend_tools, cbook
  from matplotlib.backend_bases import ToolContainerBase, CloseEvent, KeyEvent, LocationEvent, MouseEvent, ResizeEvent
  from gi.repository import Gio, GLib, GObject, Gtk, Gdk
  from .None import _backend_gtk
  from ._backend_gtk import _BackendGTK, _FigureCanvasGTK, _FigureManagerGTK, _NavigationToolbar2GTK, TimerGTK
label_desc: Use image node_id 17 for calling the FigureCanvasGTK3 obj's underlying member method code with example usage: obj.configure_event(widget, event) and returns: False